Question: Solve using MAtlab Exercise 1 - Approximating Sin(x) using the Maclaurin Series (5 Marks) The Maclaurin series for the function sin(x) where x is expressed

 Solve using MAtlab Exercise 1 - Approximating Sin(x) using the Maclaurin

Solve using MAtlab

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: sin(x)=n=0(2n+1)!1nx2n+1=x3!x3+5!x57!x7+forallx You are required to write a MATLAB script that approximates sin(4) to 10 significant digits. Your script must also compute t and a in each iteration. Assume the exact value of sin(4) is 0.707106781186547 for the purposes of this exercise. - What is the value of s ? - How many iterations does your script take to converge on a close value to the true value given the stoppage criterion s ? 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

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!