Question: Exercise 1 Approximating Sin(x) using the Maclaurin Series (5 Marks) The Maclaurin series for the function sin(x) where x is expressed in radians is: You
Exercise 1 Approximating Sin(x) using the Maclaurin Series (5 Marks) The Maclaurin series for the function sin(x) where x is expressed in radians is: You are required to write a MATLAB script that approximates to 10 significant digits. Your script must also compute and in each iteration. Assume the exact value of is 0.707106781186547 for the purposes of this exercise. What is the value of ? How many iterations does your script take to converge on a close value to the true value given the stoppage criterion ? Hint: Compute each term of the series indvidually (do not forget the signs) for the first 10 terms, then use the cumsum function to sum n terms in each iteration.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
