Question: Problem 3 The sine function can be evaluated by the following series (based on the Taylor's series expansion : x3 x5 sin x = x

 Problem 3 The sine function can be evaluated by the following

Problem 3 The sine function can be evaluated by the following series (based on the Taylor's series expansion : x3 x5 sin x = x - + 3! 5! x7 + 7! .-. () (-1)" (2n+1) where x is in radians. python a) Write a program to compute the value of sin x up to a specified order term n b) Compute sin 35 and sin 170 with n being 1, 2, 5, 7, 15 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? 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!