math.asin
Take the arc sine of a value between -1 and 1, as an angle in radians.
math.asin(x)Arc sine in radians, in [-pi/2, pi/2]. na outside the domain [-1, 1] rather than NaN.
Parameters
A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.
| Name | Kind | Type | Default | Range | Description |
|---|---|---|---|---|---|
x | Series | number | - | - | The value to transform. |
Output
| Name | Type |
|---|---|
value | number |
Warm-up and missing values
- Warm-up
- None.
- Missing values
- na in, na out. A result outside the finite range is a calculation error.
Example
math.asin(close)plot(math.asin(ta.cmo(close, 9) / 100), "Arc sine")