Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python Math sin() function is used to return trigonometric sine of an angle (angle should be in radians).

Syntax

sin(x)

Parameters

x Required. Specify the angle in radian.

Return Value

Returns the trigonometric sine of an angle.

Example:

In the below example, sin() function is used to find out the trigonometric sine of an angle.

import math

pi = math.pi
print(math.sin(pi/6))
print(math.sin(pi/4))
print(math.sin(pi/3))

The output of the above code will be:

0.49999999999999994
0.7071067811865475
0.8660254037844386

❮ Python Math Module