The sine function can be evaluated by the following infinite series: sin x = x x3 3! +
Chapter 3, Problem 3.5(choose chapter or problem)
The sine function can be evaluated by the following infinite series: sin x = x x3 3! + x5 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 sin x = x x3 3! sin x = x x3 3! + x5 5! up to the order term of your choosing. For each of the preceding, compute and display the percent relative error as %error =true series approximation true 100% As a test case, employ the program to compute sin(0.9) for up to and including eight termsthat is, up to the term x15/15!.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer