Question: The sine function can be evaluated by the following infinite series: sinx = x--+ + Write an algorithm to implement this formula so that it
The sine function can be evaluated by the following infinite series: sinx = x--+ + Write an algorithm to implement this formula so that it computes and prints out the values of sin x as each term in the series is added. In other words, compute and print in sequence the values for sinx x 3! sinx = x--+51 up to the order term n of your choosing. For each of the preceding, compute and display the percent relative error as true - series approximation true % error 100% Write the algorithm as (a) a structured flowchart and (b) pseudocode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
