Question: Exercise 2 . A function and its approximations ( 3 0 points ) Consider = 0 infty 3 ( 3 ) ! , that
Exercise
A function and its approximations
points
Consider
infty
that is
the power series obtained by keeping every third term in the
Taylor expansion of exp
This power series corresponds to the true function
t
r
u
e
exp
For any possible integer
define the
term power series approximation
a
p
p
r
o
x
:
Submit a MATLAB code
m file
named YourlastnameYourfirstnameHW
p
m that plots
line plots for the functions
t
r
u
e
in black solid line
versus xin
in the horizontal
axis
In the same figure window, plot
a
p
p
r
o
x
for
in red dashed line
in
green dashed line
in blue dashed line
We shared a starter code YourlastnameYourfirstnameHW
p
inside the the CANVAS File
section Files
MATLAB Files
Homework
You only need to complete lines
and
in that
starter code, then rename the file appropriately with your first and last names.
Hint: Look up sqrt
exp cos
sum factorial and power
in MATLAB documen
tation. Also, intuition suggests that as
increases
a
p
p
r
o
x
should get closer to
t
r
u
e
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
