{"id":16376,"date":"2021-08-12T09:33:44","date_gmt":"2021-08-12T04:03:44","guid":{"rendered":"https:\/\/python-programs.com\/?p=16376"},"modified":"2021-11-22T18:38:28","modified_gmt":"2021-11-22T13:08:28","slug":"python-program-to-find-the-sine-series-for-the-given-range","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-find-the-sine-series-for-the-given-range\/","title":{"rendered":"Python Program to Find the Sine Series for the Given range"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find Super Factorial of a Number.<\/a>
\nMath Module :<\/strong><\/p>\n

Python’s math module is a built-in module. By importing this module, we can perform mathematical computations.<\/p>\n

Numerous mathematical operations like ceil( ),floor( ),factorial( ),mod( ),value of pi ,…..etc .can be computed with the help of math module.<\/p>\n

math.sin() function:<\/strong><\/p>\n

To compute the sine value, we must use the sine function as math. sine() takes only one parameter, the degree value.<\/p>\n

Sin is a trigonometric function that represents the Sine function. Its value can be calculated by dividing the length of the opposite side by the length of the hypotenuse of a right-angled triangle, as we learned in math.<\/p>\n

By importing the math module that contains the definition, we will be able to use the sin() function in Python to obtain the sine value for any given angle.<\/p>\n

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

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

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

Given lower limit range =0\r\nGiven upper limit range =181\r\nGiven step size =30<\/pre>\n

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

The Sine values in a given range are : \r\nsin 0 = 0.0\r\nsin 30 = 0.49999999999999994\r\nsin 60 = 0.8660254037844386\r\nsin 90 = 1.0\r\nsin 120 = 0.8660254037844387\r\nsin 150 = 0.49999999999999994\r\nsin 180 = 1.2246467991473532e-16<\/pre>\n

Example 2:<\/strong><\/p>\n

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

Given lower limit range =  50\r\nGiven upper limit range = 200 \r\nGiven step size = 20<\/pre>\n

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

The Sine values in a given range are : \r\nsin 50 = 0.766044443118978\r\nsin 70 = 0.9396926207859083\r\nsin 90 = 1.0\r\nsin 110 = 0.9396926207859084\r\nsin 130 = 0.766044443118978\r\nsin 150 = 0.49999999999999994\r\nsin 170 = 0.17364817766693028\r\nsin 190 = -0.17364817766693047<\/pre>\n

Program to Find the Sine Series for the Given range<\/h2>\n

Below are the ways to find the sine values in the Given Range.<\/p>\n