asin
The asin() method returns the arcsine of a number, that is, the angle (in radians) whose sine is equal to the given value. It is the inverse function of sin().
Interactive example
Syntax
typescript
function asin<
GenericInput extends number,
>(input: GenericInput): numberParameters
input: A number between -1 and 1 representing the sine of an angle.
Return value
The angle in radians (between -π/2 and π/2) whose sine equals the given value. Returns NaN if the value is outside the interval [-1, 1].
See also
sin- Calculates the sine of an angleacos- Calculates the arccosineatan- Calculates the arctangent
