Inverse of Tan in python (tan-1)

一曲冷凌霜 提交于 2019-12-01 02:42:22

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 ;)

>>>from math import *
>>>degrees(atan(1.18))
>>>49.720136931043555
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!