math.atan() - Pine Script Function
math.atan()
Section titled “math.atan()”Overview
Section titled “Overview”The atan function returns the arctangent (in radians) of number such that tan(atan(y)) = y for any y.
Syntax
Section titled “Syntax”math.atan(angle) → const floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| angle | const int/float | The value |
| in | — | radians |
| to | — | use in the calculation. |
Returns
Section titled “Returns”The arc tangent of a value; the returned angle is in the range [-Pi/2, Pi/2].