Question: Create a script that does the actions listed below. Make sure to include a proper header including your name at the top of the script
1. (30 Points) It is known that: x(2k-1) tan-"(x) = X(-116-1 (2k-1) Truncate the series to compute the first 10 estimates (.e. for k = 1,2,3,... 9,10) for x = 5, you must use a for loop. All calculations and printing the table described below should be done from within the loop. For each estimate, determine the magnitude of both the true error and 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 (not the order of 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
Get step-by-step solutions from verified subject matter experts
