SquareWave
A function whose graph is a square wave.
Syntax
-
SuqareWave(x)
-
x
is a real number
-
Description
SquareWave(x)
is a square wave with amplitude 1
and wavelength 2⋅π
. The range is [−1, 1]
and the function transitions from −1
to +1
at x = 0
. The value at each transition is 0
. Hence,
SquareWave(x) = sgn(sin(x))
(except for numerical issues).