Question: Consider the function f ( x ) = x ( cos x sin x ) a ) Evaluate the function at four points: x =
Consider the function fx xcos x sin x
a Evaluate the function at four points: x
b Use the results from a to estimate the first derivative at same points using st order forward or backward
difference as appropriate Thereafter, calculate the true error et
c Now compute the first derivative using nd order central difference. For end point use nd order forward
or backward as appropriate. Calculate the true error again for this case.
d How does the true error in b compare to that in c
e Compute the second derivative using second order formulas. Calculate the true error for this case also.
Repeat problem with all parts in PYTHON this time. However, instead of the four points, use points,going from to iedots for each part.
Instead of reporting the raw values, make plots of function, derivatives, etc. vs in each part.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
