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.

Details

  • SquareWave[{min,max},x] has value max for 0<x<1/2.

Examples

open allclose all

Basic Examples  (2)

In[1]:=
Click for copyable input
Out[1]=

SquareWave is periodic with period 1:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Generalizations & Extensions  (1)

Applications  (2)

Properties & Relations  (3)

Possible Issues  (1)

See Also

TriangleWave  SawtoothWave  Sin  UnitStep  IntegerPart  Piecewise  UnitBox  HeavisidePi

Introduced in 2008
(7.0)