Given n and x, where n is the number of terms in the series and x is the value of the angle in degree. The Task here is, write a program to calculate the sum of sine series of x.
Input: n = 10 x = 30 Ouput: sum of sine series is 0.5 Input: n = 10 x = 60 Ouput: sum of sine series is 0.87
Below is the program to calculate the sum of sine series:
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.