![]() |
amplitude is the amplitude of triangle wave. The default is 1.0. |
![]() |
f is the frequency of triangle wave in Hz. The default is 1. |
![]() |
phase is the shift of the waveform, in degrees. |
![]() |
time is the independent variable. |
![]() |
triangle wave is the output triangle wave. |
triangle wave = amplitude × triangle (q)
where
and
q = (360 · f · time + phase) mod (360), phase in degrees.