Lipi Reference
Lipi

Functions

math.tan()

The tangent of `angle`, where the angle is in radians.

Syntax · 1 of 4

                math.tan(const float angle) → const float
              

Arguments

angle required const float Angle, in radians.

Return Type

const float

Syntax · 2 of 4

                math.tan(input float angle) → input float
              

Arguments

angle required input float Angle, in radians.

Return Type

input float

Syntax · 3 of 4

                math.tan(simple float angle) → simple float
              

Arguments

angle required simple float Angle, in radians.

Return Type

simple float

Syntax · 4 of 4

                math.tan(series float angle) → series float
              

Arguments

angle required series float Angle, in radians.

Return Type

series float

Example


          //@lipi=2
indicator("math.tan Example", overlay=false)
value = math.tan(math.pi / 4)
plot(value, title="tan(45 deg) (1)", color=color.blue)