Definition:Square Wave

Definition
A square wave is a periodic real function $S: \R \to \R$ defined as follows:


 * $\forall x \in \R: \map S x = \begin {cases}

\delta + \gamma & : x \in \openint \alpha {\alpha + \lambda} \\ \delta - \gamma & : x \in \openint {\alpha - \lambda} \alpha \\ \map S {x + 2 \lambda} : & x < \alpha - \lambda \\ \map S {x - 2 \lambda} : & x > \alpha + \lambda \end {cases}$

where:
 * $\alpha$, $\lambda$, $\gamma$ and $\delta$ are given real constants.