Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the function f ( x ) = x ( cos x sin x ) a ) Evaluate the function at four points: x =

Consider the function f(x)= x(cos x sin x)
a) Evaluate the function at four points: x =2.9,3.0,3.1,3.2
b) Use the results from a) to estimate the first derivative at same points using 1st order forward or backward
difference (as appropriate). Thereafter, calculate the true error et.
c) Now compute the first derivative using 2nd order central difference. For end point use 2nd 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 1(with all parts) in PYTHON this time. However, instead of the four points, use 21 points,going from x=2 to x=4, i.e.,x=2,2.1,2.2,dots4 for each part.
Instead of reporting the raw values, make plots of function, derivatives, et, etc. vs.x in each part.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

10:16 AM Sun Jan 29 Answered: 1 week ago

Answered: 1 week ago