class method
Math.asin
(::Math::double x) -> ::Float
Math.asin(x) → float
math.c
View on GitHub ↗
static VALUE
math_asin(VALUE unused_obj, VALUE x)
{
math_arc(x, asin)
}
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