Answers for "python sin cos tan"

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
17

python floor

import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
Posted by: Guest on May-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language