Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Implement the mathematical function f(x) = -5 x^5 + 69 x^2 - 47 as a Python function. Then use Python to compute the function values f(0), f(1), f(2), and f(3). Enter the maximum of these four numbers.

OpenStudy (anonymous):

This is the code I have right now: === def f(x): return (-5.0)(x**5) + (69.0)(x**2) - 47.0 print f(0) print f(1) print f(2) print f(3) === However I don't understand my error: Line 2: TypeError: 'float' object is not callable

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!