Question: # Implement sin(x) using Maclaurin's series. 2 # Look up how this is done mathematically on (https:// en.wikibooks.org/wiki/Trigonometry/ Power Series_for_Cosine_and_Sine) 3 # 0. As
# Implement sin(x) using Maclaurin's series. 2 # Look up how this is done mathematically on (https:// en.wikibooks.org/wiki/Trigonometry/ Power Series_for_Cosine_and_Sine) 3 # 0. As practice, use math.pow() and math.factorial() first and test your program. 4 # 1. Use 2 as input angle and make sure you get 0.909 as output. This will prove that your code works. your own my_power() and my_factorial() 5 # 2. Write methods to replace the math library. Test your code. # 3. Ask the user to enter an angle in degrees. 6 7 # 4. Write a method to convert degrees to radians. Use the radians in the formula. 8 # 5. Submit only this last version. 9 10 # Example: 11 # 12 # sin(2) = 0.909 # 2 radians sin (114.6) = 0.909 # 114.6 degrees MENURIT mill
Step by Step Solution
3.37 Rating (150 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
