Question: This should be answer in MATLAB code. Please explain throughout the process. Answer and process must be typed. Thank you The Maclaurin series expansion for
The Maclaurin series expansion for the cosine function is: Write an m-file that generates a column vector of the first 13 series sums to estimate cos(8T/5). Compute the true relative error (G) and approximate relative error (G) for the second through last series sums. Use MATLAB's built-in cosine function to calculate the true value. Save your cosine estimates, corresponding values, and corresponding values to three column vectors. Note: the first elements in your approximate relative error vector should correspond to the second Maclaurin series approximation: cosx 1-x /2! ANSWERS: Write your three column vectors (cos x, e ), to A3.dat (13*1), A4.dat (13*1), and A5.dat (12x1) respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
