Answers for "arctan in python"

0

arctan in python

import math
#The math.atan() method returns the arc tangent of a number (x) as a numeric value between -PI/2 and PI/2 radians.
value=1
# for the output in radians
math.atan(value)
# for the output in degrees
math.degrees(math.atan(value))
Posted by: Guest on March-17-2022

Python Answers by Framework

Browse Popular Code Answers by Language