Skip to content

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): number

Parameters ​

  • 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 angle
  • acos - Calculates the arccosine
  • atan - Calculates the arctangent

Sources ​

Released under the MIT license.