cos in python in degrees
math.cos(math.radians(1))
# math.cos takes radians
# math.radians converts radians to degrees
cos in python in degrees
math.cos(math.radians(1))
# math.cos takes radians
# math.radians converts radians to degrees
sin and cos in python
import math
angle_in_degrees = 45
angle_in_radians = math.radians(angle_in_degrees)
sin_of_angle = math.sin(angle_in_radians)
cos_of_angle = math.cos(angle_in_radians)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us