Question: 1. (a) (15 points) Write a program to determine the function sin x from the infinite series sinr = (-1) p2i+1 (21 + 1)! i=0

 1. (a) (15 points) Write a program to determine the function

1. (a) (15 points) Write a program to determine the function sin x from the infinite series sinr = (-1) p2i+1 (21 + 1)! i=0 stopping the calculation when the next term in the sum is less than 10-6 in magnitude. (b) (5 points Use your program to evaluate sin 0.1, sin 1, sin 10, and sin 35 (arguments are in radians). (c) [5 points Compare your results with the correct values, as obtained using the built-in math functions in Python

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!