Question: { USE PYTHON ONLY } Let f ( x ) be a function of x . f ( x ) = x 5 + 2

{USE PYTHON ONLY }
Let f(x) be a function of x.
f(x)=x5+2.5x4-2x3-6x2+x+2
a. Plot the function for
-2.5x1.5
b. What is the actual slope of f(x) at x=0,-1.18625? Print f'(x) and plot f'(x) at -2x1.2.
For c to e, assume step size is 0.1.
c. Use forward differntiation to figure out the slope at x=0,-1.18625.
d. Use backward differntiation to figure out the slope at x=0,-1.18625.
e. Use central differntiation to figure out the slope at x=0,-1.18625.
f. Compare the error of each method with actual differentiation at x=0,-1.18625 by showing in a Pandas Dataframe.
g. plot error vs h curves with proper label and color for each method at x=0 and h=[0.55,0.3,.17,0.1,0.055,0.03,0.017,0.01].
{ USE PYTHON ONLY } Let f ( x ) be a function of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!