math.tan
The tangent of angle, where the angle is in radians.
math.tan(const float angle) → const floatmath.tan(input float angle) → input floatmath.tan(series float angle) → series floatmath.tan(simple float angle) → simple float| Parameter | Type | Required | Description |
|---|---|---|---|
angle | const float | yes | The angle, in radians. Use math.toradians to convert from degrees. |
Returns const float or input float or series float or simple float — The tangent, as a float in the argument’s form.
indicator("Tangent")
plot(math.tan(math.pi / 4))See also math.abs · math.acos · math.asin
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.