Question: The sine function can be evaluated by the following infinite series: Create an M-file to implement this formula so that it computes and displays the

The sine function can be evaluated by the following infinite series:

sin.x = x x + 3! 5!

Create an M-file to implement this formula so that it computes and displays the values of sin x as each term in the series is added. In other words, compute and display in sequence the values for

sin x = x

up to the order term of your choosing. For each of the preceding, compute and display the percent relative error as

As a test case, employ the program to compute sin(0.9) for up to and including eight terms—that is, up to the term x15/15!.

sin.x = x x + 3! 5!

Step by Step Solution

3.30 Rating (179 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the MATLAB code to implement the sine function series and display the values and percent rel... View full answer

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 Applied Numerical Methods Questions!