Question: the 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

 the answer needs to be a Matlab script Problem 3. The

the 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

1 Expert Approved Answer
Step: 1 Unlock 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 Chemical Engineering Questions!