math.cos() - Pine Script Function
math.cos()
Section titled “math.cos()”Overview
Section titled “Overview”The cos function returns the trigonometric cosine of an angle.
Syntax
Section titled “Syntax”math.cos(angle) → const floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| angle | const int/float | Angle |
| in | — | radians. |
Returns
Section titled “Returns”The trigonometric cosine of an angle.