Skip to content
class method

Math.asin

(::Math::double x) -> ::Float
Math.asin(x) → float

Returns the arc sine of x.

  • Domain: [-1, -1].

  • Range: [-PI/2, PI/2].

Examples:

Example
asin(-1.0) # => -1.5707963267948966 # -PI/2
asin(0.0)  # => 0.0
asin(1.0)  # => 1.5707963267948966  # PI/2
See also .acosh .asinh .acos .atan also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0