MCPcopy Create free account
hub / github.com/PageBot/PageBot / atan

Function atan

Lib/pagebot/toolbox/units.py:2288–2298  ·  view source on GitHub ↗

Answers a Radians instance, using math.atan(v). >>> a = degrees(0) >>> atan(a.tan) 0rad >>> a = degrees(45) >>> atan(a.tan).degrees 45

(v)

Source from the content-addressed store, hash-verified

2286 return radians(math.asin(v)/math.pi)
2287
2288def atan(v):
2289 """Answers a Radians instance, using math.atan(v).
2290
2291 >>> a = degrees(0)
2292 >>> atan(a.tan)
2293 0rad
2294 >>> a = degrees(45)
2295 >>> atan(a.tan).degrees
2296 45
2297 """
2298 return radians(math.atan(v)/math.pi)
2299
2300def atan2(v1, v2):
2301 """Answers a Radians instance, using math.atan2(v1, v2).

Callers

nothing calls this directly

Calls 1

radiansFunction · 0.85

Tested by

no test coverage detected