Home >>Python math Module >Python math.sin() Method

Python math.sin() Method

Python math.sin() Method

Python math.sin() method in python is used to return the cosine of the given number in radians and it accepts a number.

Syntax:
math.sin(x)

Parameter Values

Parameter Description
x It is required a number to find the sine.
Here is an Example of Python math.sin() Method:

import math
print (math.sin(14))
print (math.sin(0))
print (math.sin(-23.06))
print (math.sin(math.pi))
print (math.sin(math.pi/2))

Output:
0.9906073556948704
0.0
0.8766484670355753
1.2246467991473532e-16
1.0
Example 2:

import math
print(math.sin(math.radians(22)))
print(math.sin(math.radians(75)))

Output:
0.374606593415912
0.9659258262890683

No Sidebar ads