Take the 2-minute tour ×

I am trying to calculate the inverse of tan in python, but it does not give me the correct value, for example, if I were to do the inverse tan of 1.18, math.atan(1.18)


However, the correct answer is 49.720136931. What is the correct way to do than?

share|improve this question
How do you figure to get 49 radians in a circle? –  Marcin Apr 7 '12 at 19:57
radians, degrees... –  Guy Sirton Apr 7 '12 at 19:57
add comment

1 Answer

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))
share|improve this answer
add comment

Your Answer


