Question: Matlab coding. Answer is not supposed to be a function file. It's a loop PROBLEM 2. MIDPOINT BREAK LOOPS The sin function can be expressed
Matlab coding. Answer is not supposed to be a function file. It's a loop
PROBLEM 2. MIDPOINT BREAK LOOPS The sin function can be expressed as a series expansion: (x) x Use a midpoint break loop to approximate the value of sin(x). Break the loop when the new term to be included in the summation is smaller than 0.001 (the tolerance). Test your function by comparing it to the built-in sin function evaluating x pi/3 Display the sin approximation, the number of terms required to reach the tolerance, and the value of the built-in function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
