math.tan
Take the tangent of an angle given in radians.
math.tan(x)Tangent of an angle in radians. na where the tangent overflows, which is the rule for every non-finite result rather than an asymptote.
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.tan(close)plot(math.tan(math.toradians(ta.rsi(close, 14))), "Tangent")