math – Inverse of Tan in python (tan-1)

math – Inverse of Tan in python (tan-1)

math.atan(x) returned in radian, if you want degree, convert it using math.degrees(x)

Converts angle x from radians to degrees.

>>> import math
>>> math.degrees(math.atan(1.18))
49.720136931043555

you can simply multiply the radians by 180/pi.
No need of importing 😉

math – Inverse of Tan in python (tan-1)

>>>from math import *
>>>degrees(atan(1.18))
>>>49.720136931043555

Leave a Reply

Your email address will not be published. Required fields are marked *