Matlab Assignment
henrycrep
Question
1. (10 points) The sine function can be evaluated via the following infinite series:
sin(x)= x− (x^3/3!) + (x^5/5!) − (x^7/7!) +···
Write a function approxSine that takes as input two parameters, x and threshold, to perform the following task. Starting with the initial approximation sin(x) = x, add terms one at a time to improve this estimate until
((true value − approximation) / (true value)) < threshold.
Assume that the true value of sine is the one returned by the built-in sin function in MATLAB.
Details
Purchase An Answer Below