0

How to calculate sin and cos of the number?

3rd Sep 2018, 11:32 AM
Hlad
Hlad - avatar
2 odpowiedzi
+ 4
https://docs.python.org/3/library/math.html
3rd Sep 2018, 11:46 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
import math x = math.pi / 2 print(math.sin(x)) print(math.cos(x)) Note: The arguments of these functions should be in radians. Read more here: https://docs.python.org/3/library/math.html
3rd Sep 2018, 11:50 AM
Kishalaya Saha
Kishalaya Saha - avatar