- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions

# Python program to find the sum of sine series

Let us consider that we have a value x and we have to calculate the sum of sine(x) series. In a sine(x) series, there are multiple terms such that,

sine(x) = x− x^3/fact(3) + x^5/fact(5) −x^7/fact(7)....

In order to solve the particular series-based problem, we will first take the degree as the input and convert it into radian. To find out the sum of the total number of terms in this series, we will first iterate over all the given terms and find out the sum by operations.

## Approach to solve this Problem

Take input of Limit and degree.

Iterate over the terms and find out the sum by using the power function.

Print the output.

## Example

n = 5 deg = 10 deg = deg*3.14/180 p=1 f=1 s=deg sine=−1 for i in range(3,n+1,2): deg = deg*sine p = pow(deg,i) f = f*i*(i−1) s = s+p/f print("The sum of the series of sine(10) is:", s)

## Output

Running the above code snippet will generate the output as,

The sum of the series of sine(10) is: 0.17356104142876477

- Related Articles
- 8085 program to find the sum of a series
- C program to find the sum of arithmetic progression series
- 8085 program to find the sum of series of even numbers
- Program to find sum of harmonic series in C++
- Swift Program to find the sine of given radian value
- C++ Program to find the sine of given radian value
- Python Program to find the sum of array
- C++ Program to find the hyperbolic sine of given radian value
- Python program to find the sum of dictionary keys
- Python Program to Find the Fibonacci Series Using Recursion
- 8086 program to find sum of Even numbers in a given series
- 8086 program to find sum of odd numbers in a given series
- Java Program to Find Even Sum of Fibonacci Series till number N
- Program to find sum of the sum of all contiguous sublists in Python
- Python Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!

Advertisements