Question: Write a Matlab function to evaluate the series. The code should allow an infinite number of terms, but should be used to evaluate the series

Write a Matlab function to evaluate the series. The code should allow an infinite
number of terms, but should be used to evaluate the series to 8 significant figures.
The code should also be able to run until it reaches either a maximum number of
iterations (specified by the user) or a stopping criterion (such as a minimum relative
approximate error, specified by the user in %). Include default values of maxit
(=100) in the event that they are not specified by the user. Output a table that
shows the iteration number, calculated value of cos x, relative true error (that you
can calculate based on the built-in cosine function) and relative approximate 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!