sin and cos in python

Solutions on MaxInterview for sin and cos in python by the best coders in the world

showing results for - "sin and cos in python"
Yousra
19 Nov 2017
1import math
2
3angle_in_degrees = 45
4angle_in_radians = math.radians(angle_in_degrees)
5
6sin_of_angle = math.sin(angle_in_radians)
7cos_of_angle = math.cos(angle_in_radians)
Sarah
24 Feb 2017
1#A demo of sin() function
2 
3from math import sin
4from math import cos