Question: USING MATLAB 5. Do the following: A. By hand, find the first 5 terms of the Taylor series expansion of f(x) = cos(2x) at B.
5. Do the following: A. By hand, find the first 5 terms of the Taylor series expansion of f(x) = cos(2x) at B. Use the Symbolic Toolbox's taylor function to verify that your answer from the C. Use your answer from the previous subparts to write the Taylor series expansion as a the point a = . Hint: Two of the terms will be 0 (after evaluating the sinusoids). previous subpart is correct. summation. Hint: It should have the following form: n=0 D. Write a MATLAB function m-file (Lastname problem5D.m) that uses the summation to approximate f(x). t must have 2 inputs (a scalar x-value and the number of terms to sum) and 1 output (the approximation off (x)). E. Use your function to approximate f (x) by summing 3 terms to find x 3 and one other value of x. Compute the absolute relative true error for each approximation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
