TOPICS
Search

Rectangle Function


RectangleFunction

The rectangle function Pi(x) is a function that is 0 outside the interval [-1/2,1/2] and unity inside it. It is also called the gate function, pulse function, or window function, and is defined by

The left figure above plots the function as defined, while the right figure shows how it would appear if traced on an oscilloscope. The generalized function f(x)=hPi((x-c)/b) has height h, center c, and full-width b.

As noted by Bracewell (1965, p. 53), "It is almost never important to specify the values at x=+/-1/2, that is at the points of discontinuity. Likewise, it is not necessary or desirable to emphasize the values Pi(+/-1/2)=1/2 in graphs; it is preferable to show graphs which are reminiscent of high-quality oscillograms (which, of course, would never show extra brightening halfway up the discontinuity)."

The piecewise version of the rectangle function is implemented in the Wolfram Language as UnitBox [x] (which takes the value 1 at x=+/-1/2), while the generalized function version is implemented as HeavisidePi [x] (which remains unevalutaed at x=+/-1/2).

Identities satisfied by the rectangle function include

Pi(x) = H(x+1/2)-H(x-1/2)
(2)
= H(1/2+x)+H(1/2-x)-1
(3)
= H(1/4-x^2)
(4)
= 1/2[sgn(x+1/2)-sgn(x-1/2)],
(5)

where H(x) is the Heaviside step function. The Fourier transform of the rectangle function is given by

= sinc(pik),
(7)

where sinc(x) is the sinc function.


See also

Absolute Value, Boxcar Function, Fourier Transform--Rectangle Function, Heaviside Step Function, Ramp Function, Sign, Square Wave, Triangle Function, Uniform Distribution

Explore with Wolfram|Alpha

References

Bracewell, R. "Rectangle Function of Unit Height and Base, Pi(x)." In The Fourier Transform and Its Applications. New York: McGraw-Hill, pp. 52-53, 1965.

Referenced on Wolfram|Alpha

Rectangle Function

Cite this as:

Weisstein, Eric W. "Rectangle Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RectangleFunction.html

Subject classifications

AltStyle によって変換されたページ (->オリジナル) /