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

Function asin

Lib/pagebot/toolbox/units.py:2258–2274  ·  view source on GitHub ↗

Answers a Radians instance, using math.asin(v). >>> a = degrees(0) >>> asin(a.sin) 0rad >>> a = degrees(45) >>> abs(asin(a.sin) - 0.25) < 0.01 True >>> a = degrees(90) >>> asin(a.sin) 0.5rad >>> a = degrees(-90) >>> asin(a.sin) -0.5rad

(v)

Source from the content-addressed store, hash-verified

2256# Automatic angle conversion between degrees and radians.
2257
2258def asin(v):
2259 """Answers a Radians instance, using math.asin(v).
2260
2261 >>> a = degrees(0)
2262 >>> asin(a.sin)
2263 0rad
2264 >>> a = degrees(45)
2265 >>> abs(asin(a.sin) - 0.25) < 0.01
2266 True
2267 >>> a = degrees(90)
2268 >>> asin(a.sin)
2269 0.5rad
2270 >>> a = degrees(-90)
2271 >>> asin(a.sin)
2272 -0.5rad
2273 """
2274 return radians(math.asin(v)/math.pi)
2275
2276def acos(v):
2277 """Answers a Radians instance, using math.acos(v).

Callers

nothing calls this directly

Calls 1

radiansFunction · 0.85

Tested by

no test coverage detected