Math module

asin

procedure · 2 overloadsSource

The arc sine in radians, in [-pi/2, pi/2]. float and float64. An argument outside [-1, 1] gives NaN.

ExampleOpen in playground ↗
assert(abs(asin(cast(float64) 1) - PI64 / 2) < 0.000001);
assert(isnan(asin(cast(float64) 1.5)));
asin :: (x: float64) -> float64

Arcsine, in radians between -pi/2 and pi/2.

Parameters

x: float64
the value. Outside -1..1 gives NaN.

Returns

float64
asin :: (theta: float) -> float

Arcsine, in radians between -pi/2 and pi/2.

Parameters

theta: float
the value. Outside -1..1 gives NaN.

Returns

float

See also