represents the unit box function, equal to 1 for and 0 otherwise.


represents the multidimensional unit box function, equal to 1 if and 0 otherwise.



open allclose all

Basic Examples  (4)

Evaluate numerically:

Plot in one dimension:

Plot in two dimensions:

UnitBox is a piecewise function:

Scope  (28)

Numerical Evaluation  (4)

Evaluate numerically:

UnitBox always returns an exact result:

Evaluate efficiently at high precision:

UnitBox threads over lists:

Specific Values  (4)

Value at zero:

Values at the points of discontinuity:

Evaluate symbolically:

Find a value of x for which UnitBox[x]=1:

Visualization  (4)

Plot the UnitBox function:

Visualize scaled UnitBox functions:

Visualize the composition of UnitBox with a periodic function:

Plot UnitBox in three dimensions:

Function Properties  (6)

Function domain of UnitBox:

It is restricted to real inputs:

Function range of UnitBox:

UnitBox is an even function:

The area under UnitBox is 1:

UnitBox has a jump discontinuity at the points :

TraditionalForm formatting:

Differentiation and Integration  (6)

First derivative with respect to x:

All higher-order derivatives are the same:

First derivative with respect to z:

Compute the indefinite integral using Integrate:

Verify the anti-derivative away from the singular points:

Definite integral:

Integral over an infinite domain:

Integral Transforms  (4)

The FourierTransform of a unit box is a Sinc function:


Find the LaplaceTransform of a unit box:

The convolution of UnitBox with itself is UnitTriangle:

Applications  (1)

Integrate a piecewise function involving UnitBox symbolically and numerically:

Properties & Relations  (4)

The derivative of UnitBox is a piecewise function:

The derivative of HeavisidePi is a distribution:

UnitBox is a special case of BSplineBasis:

UnitBox can be expressed in terms of UnitStep:

Multidimensional unit box function equals the product of 1D functions for each argument:

Introduced in 2008