Question: Approximation and error It is known that: c o s ( x ) = k = 0 ( - 1 ) k x 2 k

Approximation and error
It is known that:
cos(x)=k=0(-1)kx2k(2k)!
Truncate the series to compute the first 8 estimates (i.e.k=0,1,cdots,7) for x=5. You must use a for loop. All calculations and printing the table described below should be done from within the loop. Arrange your results in a table using fprintf that has column 1 as the '# of Terms' included in the estimate (not the k value), 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
 Approximation and error It is known that: cos(x)=k=0(-1)kx2k(2k)! Truncate the series

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!