Answers for "sin and cos in python"

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
0

how to import sin and cos in python

#A demo of sin() function
 
from math import sin
from math import cos
Posted by: Guest on April-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language