{"id":8685,"date":"2021-09-30T11:30:45","date_gmt":"2021-09-30T06:00:45","guid":{"rendered":"https:\/\/python-programs.com\/?p=8685"},"modified":"2021-11-22T18:35:28","modified_gmt":"2021-11-22T13:05:28","slug":"python-program-to-find-the-sum-of-sine-series","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-the-sum-of-sine-series\/","title":{"rendered":"Python Program to Find the Sum of Sine Series"},"content":{"rendered":"

If you are new to Java and want to learn the java coding skills too fast. Try practicing the core java programs with the help of the Java basic programs list<\/a> available.<\/p>\n

Consider the case where we have a value x and we need to determine the sum of the sine(x) series. There are numerous terms in a sine(x) series such that,<\/p>\n

sine(x) = x\u2212 x^3\/fact(3) + x^5\/fact(5) \u2212x^7\/fact(7).....<\/pre>\n

To begin solving the specific series-based problem, we will take the degree as input and convert it to radian. To obtain the sum of the entire number of terms in this series, we shall iterate through all of the given terms and obtain the sum by operations.<\/p>\n

Given a number x in degrees and number of terms, the task is to print the sum of sine series in\u00a0 python<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

enter the number of degrees = 55\r\nenter number of terms = 15<\/pre>\n

Output:<\/strong><\/p>\n

The sum of sine series of 55 degrees of 15 terms = 0.82<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

enter the number of degrees = 45\r\nenter number of terms = 12<\/pre>\n

Output:<\/strong><\/p>\n

The sum of sine series of 45 degrees of 12 terms = 0.71<\/pre>\n

Program to Find the Sum of Sine Series in Python<\/h2>\n