Question: 2) Write a loop to approximate the mathematical function sine. Go to http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf to see the formula to do the approximation. Note that in the

2) Write a loop to approximate the mathematical function sine. Go to http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf to see the formula to do the approximation. Note that in the formula sin x, x is measured in radian. For example, if x is 13 degrees, can be converted to radian as follows: x = 13 # x is 13 degrees. x = 13 / 180 * math.pi #x is now in radian. You also need to alternate the sign of the terms in the calculation. Use this (-1) n where n is the term number. Find the smallest number of terms in the calculation so that your approximation and math.sin(13/180* math.pi) deviate less than 1.0e-13. (50 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
