Write a Python function to Find the Sum of Sine Series
Topic: Write a Python function to Find the Sum of Sine Series
Solution
import math def sin(x,n): sine = 0 for i in range(n): sign = (-1)**i pi=22/7 y=x*(pi/180) sine = sine + ((y**(2.0*i+1))/math.factorial(2*i+1))*sign return sine
List all Python Programs