Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/index.ts:852nerdamer.asin
nerdamer.asin(x: ExpressionInput): ExpressionComputes the arcsine (inverse sine) of an expression.
Returns exact symbolic values involving π for well-known inputs:
0 → 0, 1/2 → π/6, 1/√2 → π/4, √3/2 → π/3, 1 → π/2.
Uses the identity asin(-x) = -asin(x) for negative arguments.
For numeric inputs outside [-1, 1], returns a complex result.
throws
core!UndefinedError If x is ±∞.
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The input expression (domain [-1, 1] for real results). |
Returns
Expression — The arcsine of x in radians.
Examples
asin(0).text() // "0"
asin(1).text() // "1/2*pi"
asin('1/2').text() // "1/6*pi"
asin('sqrt(2)^(-1)').text() // "1/4*pi"
// Symbolic
asin('x').text() // "asin(x)"