# Reference

## Square Waves

`Waveforms.squarewave`

— Function`squarewave(x)`

Compute $2\pi$-periodic square wave of `x`

with a peak amplitude $1$.

`squarewave(x, θ)`

Compute $2\pi$-periodic square wave of `x`

with a duty cycle `θ`

and a peak amplitude $1$.

`Waveforms.squarewave1`

— Function`squarewave1(x)`

Compute $1$-periodic square wave of `x`

with a peak amplitude $1$.

`squarewave1(x, θ)`

Compute $1$-periodic square wave of `x`

with a duty cycle `θ`

and a peak amplitude $1$.

## Triangle Waves

`Waveforms.trianglewave`

— Function`trianglewave(x)`

Compute $2\pi$-periodic triangle wave of `x`

with a peak amplitude $1$.

`Waveforms.trianglewave1`

— Function`trianglewave1(x)`

Compute $1$-periodic triangle wave of `x`

with a peak amplitude $1$.

## Sawtooth Waves

`Waveforms.sawtoothwave`

— Function`sawtoothwave(x)`

Compute $2\pi$-periodic sawtooth wave of `x`

with a peak amplitude $1$.

`Waveforms.sawtoothwave1`

— Function`sawtoothwave1(x)`

Compute $1$-periodic sawtooth wave of `x`

with a peak amplitude $1$.