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

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

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 Databases Questions!