Functions
math.sin()
The sine of `angle`, where the angle is in radians.
Syntax · 1 of 4
math.sin(const float angle) → const float
Arguments
angle required const float Angle, in radians. Return Type
const float Syntax · 2 of 4
math.sin(input float angle) → input float
Arguments
angle required input float Angle, in radians. Return Type
input float Syntax · 3 of 4
math.sin(simple float angle) → simple float
Arguments
angle required simple float Angle, in radians. Return Type
simple float Syntax · 4 of 4
math.sin(series float angle) → series float
Arguments
angle required series float Angle, in radians. Return Type
series float Example
//@lipi=2
indicator("math.sin Example", overlay=false)
wave = math.sin(bar_index * math.pi / 10)
plot(wave, title="Sine Wave", color=color.blue)