17 lines
397 B
Plaintext
17 lines
397 B
Plaintext
print "Please enter 11 numbers :"
|
|
n[] = number strsplit input " "
|
|
print ""
|
|
print "Evaluating f(x) = |x|^0.5 + 5x^3 for the given inputs :"
|
|
for i = len n[] downto 1
|
|
r = sqrt abs n[i] + 5 * pow n[i] 3
|
|
write "f(" & n[i] & ") = "
|
|
if r > 400
|
|
print "Overflow!"
|
|
else
|
|
print r
|
|
.
|
|
.
|
|
# without this section, the input is interactive
|
|
input_data
|
|
10 -1 1 2 3 4 4.3 4.31 4.32 4.32 4.29
|