Skip to main content

SquareWave

SquareWave[x] gives a square wave that alternates between +1 and -1 with unit period.

SquareWave[{y1,y2},x] gives a square wave that alternates between y1 and y2 with unit period.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.