Question: Whats the matlab code for this? The sine function can be evaluated by the following series (based on the Taylor's series expansion) X3 X5 X7
Whats the matlab code for this?
The sine function can be evaluated by the following series (based on the Taylor's series expansion) X3 X5 X7 sin x = x - 3:+577+ (-1) = 2n-e (2n + 1)! Vr(2n+1) where x is in radians. a) Write a Matlab program to compute the value of sin x up to a specified order term n b) Compute sin 65 and sin 195 with n being 1, 2, 4, 8, 16 c) Compute the true and estimated percent relative errors for the different solutions. Present the results in both graphical and tabular format. d) Do you see a systematic trend when comparing the true vs the estimated percent relative errors for the numerical solutions? e) What type of numerical error does this question illustrate? What is a viable remedy for this type of numerical error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
