Question: please answer in matlab MATLAB PLEASE i will upvote please make sure all parts run The Taylor series expansion for sin(x) is sin(x)=x3!x3+5!x57!x7+=n=0(2n+1)!(1)nx2n+1 where x

The Taylor series expansion for sin(x) is sin(x)=x3!x3+5!x57!x7+=n=0(2n+1)!(1)nx2n+1 where x is in radians. Write a MATT.AB program that determines sin(x) using the Taylor series expansion. The program asks the user to type a value for an angle in degrees. Then the program uses a while loop for adding the terms of the Taylor series, If ann is the nth term in the series, then the sum Smow of the n terms is Snew=Soud+. In each pass calculate the estimated error given by Error =SoldSnewSold. Stop adding terms when Error 1E8. The progrim display the value of sin(x). Use the program for calculating sin(45) and sin(195) Show the results as: Tbe sin of is providing an error equal to Use stientific notation with 2 decimal places. Write a MATLAB program for problem 5 using a for loop. Run the program for 5,10 , and 15 steps. User must enter the value of m. Display the error at the end of the calculations. Show the results as: The sin of is after iterations, providing an emor equal to - Use scientific notation with 2 decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
