Question: answer needs to be a Matlab script Problem 3. The value of the sine function can be approximated as sinx=x3!x3+5!x57!x7+ Prompt the user to select

answer needs to be a Matlab script
Problem 3. The value of the sine function can be approximated as sinx=x3!x3+5!x57!x7+ Prompt the user to select 'degree' or 'radian' and then to input an angle of degree or radian. Create a midpoint break loop to approximate sinx using the equation above. In case of degree, you need to convert it into radian before using the equation above. Determine convergence by comparing successive values of the summation as you add additional terms. These successive sums should be within an absolute value of 0.001 of each other before terminate the approximation. Display the value with appropriate texts using the fprintf command
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
