Question
MATLAB 1. Let f(x) = cos 2x. For a domain and x0 of your choice, write the 1st through 5th degree Taylor polynomials in your
MATLAB
1. Let f(x) = cos 2x. For a domain and x0 of your choice, write the 1st through 5th degree Taylor polynomials in your written document. In one MatLab figure, plot all 5 and the original function. In another figure, plot the error for each approximation, as functions of x. This should create 5 curves as well.
2. Let f(x) = 1 x+1 . Repeat the previous exercise for this function. (Hints: remember to limit your domain and pick an x0 so as not to explode 1 this function by division by zero. Also, division, as with multiplication, needs to be done elementwise using the .)
Numerical Analysis Use MATLAB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started