Question: Write the MATLAB code please (30 Points) It is known that the sine function can be expressed as sin(x) = -(-1) (2k + 1)! k=0

Write the MATLAB code please

Write the MATLAB code please (30 Points) It is known that the

(30 Points) It is known that the sine function can be expressed as sin(x) = -(-1)" (2k + 1)! k=0 Truncate the series to compute the first seven estimates (i.e. for k = 0, 1, 2, 3, 4, 5, and 6) for x-, For each estimate determine the magnitude of both the true error and magnitude of the approximate percent relative error. Arrange your results in a table (use fprintf - see workshop 5) that has column 1 as the # of Terms, included in the estimate, the second column the Estimate, the third column the True Error' and the fourth column the Magnitude of the Approximate Percent Relative Error, MAPRE'. Express everything, except the number of terms, in decimal format with 10 digits after the decimal point. The header should look exactly like this: # of terms Estimate True Error MAPRE

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!