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

Function acos

Lib/pagebot/toolbox/units.py:2276–2286  ·  view source on GitHub ↗

Answers a Radians instance, using math.acos(v). >>> a = degrees(0) >>> acos(a.cos) 0.5rad >>> a = degrees(180) >>> acos(a.cos).degrees -90

(v)

Source from the content-addressed store, hash-verified

2274 return radians(math.asin(v)/math.pi)
2275
2276def acos(v):
2277 """Answers a Radians instance, using math.acos(v).
2278
2279 >>> a = degrees(0)
2280 >>> acos(a.cos)
2281 0.5rad
2282 >>> a = degrees(180)
2283 >>> acos(a.cos).degrees
2284 -90
2285 """
2286 return radians(math.asin(v)/math.pi)
2287
2288def atan(v):
2289 """Answers a Radians instance, using math.atan(v).

Callers

nothing calls this directly

Calls 1

radiansFunction · 0.85

Tested by

no test coverage detected