Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We use f ( x ) = 1 - x 2 2 to approximate the function c o s ( x ) . [ MATH

We use
f(x)=1-x22
to approximate the function cos(x).[MATH3800W24A1-10189572]
a.(2 points) Use MATLAB to plot f(x) and cos(x) over xin[0,0.5135] in the same plot.
b.(2 points) Use MATLAB to estimate
max{|f(x)-cos(x)|:xin[0,0.5135]}
by computing the maximum over x in a grid of 245 equidistant points in the given interval.
c.(3 points) Compute in MATLAB both the forward error and backward error at x=0.2452. Use sprintf to format your output string so that they look like the following with at least 8 decimal places:
Forward error is -0.00002342
Backward error is 0.00013492
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

Icdt 88 2nd International Conference On Database Theory Bruges Belgium August 31 September 2 1988 Proceedings Lncs 326

Authors: Marc Gyssens ,Jan Paredaens ,Dirk Van Gucht

1st Edition

3540501711, 978-3540501718

More Books

Students also viewed these Databases questions