represents the unit triangle function on the interval .


represents the multidimensional unit triangle function on the interval .



open allclose all

Basic Examples  (4)

Evaluate numerically:

Plot in one dimension:

Plot in two dimensions:

UnitTriangle is a piecewise function:

Scope  (29)

Numerical Evaluation  (5)

Evaluate numerically:

Evaluate to high precision:

For inputs between -1 and 1, the precision of the output tracks the precision of the input:

For inputs outside that range, the result is exact:

Evaluate efficiently at high precision:

UnitTriangle threads over lists:

Specific Values  (4)

Values of UnitTriangle at fixed points:

Value at zero:

Evaluate symbolically:

Find a value of x for which UnitTriangle[x]=0.4:

Visualization  (4)

Plot the UnitTriangle function:

Visualize scaled UnitTriangle functions:

Visualize the composition of UnitTriangle with a periodic function:

Plot UnitTriangle in three dimensions:

Function Properties  (6)

Function domain of UnitTriangle:

It is restricted to real inputs:

Function range of UnitTriangle:

UnitTriangle is an even function:

The area of the UnitTriangle is 1:

UnitTriangle is continuous everywhere, including its three singular points:

TraditionalForm typesetting:

Differentiation and Integration  (6)

First derivative with respect to x:

Higher-order derivatives with respect to x:

First derivative with respect to z:

Series expansion at the origin:

Compute the indefinite integral using Integrate:

Verify the anti-derivative away from the singular points:

Definite integral:

Integral Transforms  (4)

FourierTransform of UnitTriangle is a squared Sinc function:


Find the LaplaceTransform of UnitTriangle:

The convolution of UnitTriangle with itself:

Applications  (2)

Integrate a piecewise function involving UnitTriangle symbolically and numerically:

Solve a differential equation involving UnitBox and UnitTriangle:

Properties & Relations  (3)

The derivative of UnitTriangle is a piecewise function:

The derivative of HeavisideLambda is a distribution:

At higher orders, the DiracDelta distribution appears:

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

UnitTriangle is a special case of BSplineBasis:

Introduced in 2008