On this page
math.asin
Prev: math.acosh | Up: math | Next: math.asinh
Rel: math.acos, math.acosh, math.asinh, math.atan
Ref: docs.python.org — math.asin
Tags: #public #python3 #stdlib #math
Import
import math
from math import asin
Signature & Overview
math.asin(x, /)
Return the arc sine (measured in radians) of x.
Usage
import math
assert math.isclose(math.asin(1.0), math.pi / 2)
assert math.isclose(math.asin(0.0), 0.0)
Gotchas
- Domain is
[-1.0, 1.0]: Clamp floating-point dot products before callingasin(). - Returns radians in
[-pi/2, pi/2].
REPL Inspect
from math import asin
help(asin)
Linked from
- tuts/python3/stdlib_module/math
- tuts/python3/stdlib_module/math/acos
- tuts/python3/stdlib_module/math/acosh
- tuts/python3/stdlib_module/math/asinh
- tuts/python3/stdlib_module/math/atan
- tuts/python3/stdlib_module/math/atan2
- tuts/python3/stdlib_module/math/atanh
- tuts/python3/stdlib_module/math/cbrt
- tuts/python3/stdlib_module/math/ceil
- tuts/python3/stdlib_module/math/comb
- tuts/python3/stdlib_module/math/copysign
- tuts/python3/stdlib_module/math/cos
- tuts/python3/stdlib_module/math/cosh
- tuts/python3/stdlib_module/math/degrees
- tuts/python3/stdlib_module/math/dist
- tuts/python3/stdlib_module/math/erf
- tuts/python3/stdlib_module/math/erfc
- tuts/python3/stdlib_module/math/exp
- tuts/python3/stdlib_module/math/exp2
- tuts/python3/stdlib_module/math/expm1
- tuts/python3/stdlib_module/math/fabs
- tuts/python3/stdlib_module/math/factorial
- tuts/python3/stdlib_module/math/floor
- tuts/python3/stdlib_module/math/fma
- tuts/python3/stdlib_module/math/fmod
- tuts/python3/stdlib_module/math/frexp
- tuts/python3/stdlib_module/math/fsum
- tuts/python3/stdlib_module/math/gamma
- tuts/python3/stdlib_module/math/gcd
- tuts/python3/stdlib_module/math/hypot
- tuts/python3/stdlib_module/math/isclose
- tuts/python3/stdlib_module/math/isfinite
- tuts/python3/stdlib_module/math/isinf
- tuts/python3/stdlib_module/math/isnan
- tuts/python3/stdlib_module/math/isqrt
Related notes
- tuts/python3/stdlib_module/math/acos Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/acosh Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/asinh Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/atan Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/math/atan2 links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/atanh links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/cbrt links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/ceil links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/comb links to this page; shared tags: #math, #stdlib