Answers for "cos and sin python"

2

cos in python in degrees

math.cos(math.radians(1))
# math.cos takes radians
# math.radians converts radians to degrees
Posted by: Guest on September-12-2020
1

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)
Posted by: Guest on August-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language