The rectangular function (also known as the rectangle function, rect function or the normalized boxcar function) is defined as
Rectangular function
![{\displaystyle \mathrm {rect} (x)=\sqcap (x)={\begin{cases}0&{\mbox{if }}|x|>{\frac {1}{2}}\\[3pt]{\frac {1}{2}}&{\mbox{if }}|x|={\frac {1}{2}}\\[3pt]1&{\mbox{if }}|x|<{\frac {1}{2}}\end{cases}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/18968fc51424e9c28296c1ff41c1164994f55f8c)
or in terms of the Heaviside step function, u(t):

or, alternatively:

The rectangular function is normalized:

The unitary Fourier transforms of the rectangular function are:
, in terms of the unnormalized sinc function.
, in terms of the normalized sinc function
Viewing the rectangular function as a probability distribution function, its characteristic function is therefore written

and its moment generating function is:

where "sinh" is the hyperbolic sine function.
See also