Python sin function

Python sin(x) function returns the sine value of radian angle x. The principle values for x is [-∞,∞]. It's a method of math module.

>>> import math
>>> math.sin(math.pi)
1.2246467991473532e-16
>>> math.sin(math.pi/2)
1.0
>>> math.sin(math.pi/6)
0.49999999999999994
>>> math.sin(math.pi/3)
0.8660254037844386

y=sine(x) Graph

X
(deg)
X
(Rad)
Y=sine(X)
180 ̊ π 0
150 ̊ 5π/6 0.5
135 ̊ 3π/4 0.707107
120 ̊ 2π/3 0.866025
90 ̊ π/2 1
60 ̊ π/3 0.866025
45 ̊ π/4 0.707107
30 ̊ π/6 0.5
0 ̊ 0 0

Sine Functions
1. sine(-x) = -sine(x);
2. sine2(x) + cos2(x) = 1

The principle values for x is (-∞,∞).

endmemo.com © 2024  | Terms of Use | Privacy | Home