Question: We use f ( x ) = 1 - x 2 2 to approximate the function c o s ( x ) . [ MATH
We use
to approximate the function MATHWA
a points Use MATLAB to plot and over xin in the same plot.
b points Use MATLAB to estimate
max:xin
by computing the maximum over in a grid of equidistant points in the given interval.
c points Compute in MATLAB both the forward error and backward error at Use sprintf to format your output string so that they look like the following with at least decimal places:
Forward error is
Backward error is
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
