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 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
Get step-by-step solutions from verified subject matter experts
