Question: PROBLEM 1. points 40 - Use MATLAB Evaluate e5 using two approaches: 2! 3! an and compare with the true value of 6.737947 x 10-3.

PROBLEM 1. points 40 - Use MATLAB Evaluate e5 using two approaches: 2! 3! an and compare with the true value of 6.737947 x 10-3. Use 20 terms to evaluate each series and compute true (5) and approximate relative errors (6) as terms are addes. Write a script file in MATLAB in a similar way you did in class for the function exp r. Also, generate one figure with two subplots: 1. one subplot that shows the value of e versus number of iterations as given by the two approximations (1).(2), and 2. a second subplot for the true and approximate relative percent errors, eqs. (5) and (6) respectively, versus number of iterations, for both approximations (1),(2). Hint: Express the summed terms in eq. (4) with a infinite series sum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
