UnitTriangle

UnitTriangle[x]

represents the unit triangle function on the interval .

UnitTriangle[x1,x2,]

represents the multidimensional unit triangle function on the interval .

Details

Examples

open allclose all

Basic Examples  (4)

Evaluate numerically:

Plot in one dimension:

Plot in two dimensions:

UnitTriangle is a piecewise function:

Scope  (36)

Numerical Evaluation  (7)

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:

Compute the elementwise values of an array using automatic threading:

Or compute the matrix UnitTriangle function using MatrixFunction:

Compute average-case statistical intervals using Around:

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  (11)

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 not an analytic function:

It has singularities:

However, it is continuous everywhere:

Verify the claim at one of its singular points:

UnitTriangle is neither nondecreasing nor nonincreasing:

UnitTriangle is not injective:

UnitTriangle is not surjective:

UnitTriangle is non-negative:

UnitTriangle is neither convex nor concave:

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:

FourierSeries:

Find the LaplaceTransform of UnitTriangle:

The convolution of UnitTriangle with itself:

Applications  (4)

Integrate a piecewise function involving UnitTriangle symbolically and numerically:

Solve a differential equation involving UnitBox and UnitTriangle:

Visualize discontinuities in the wavelet domain:

Detail coefficients in the region of discontinuities have larger values:

Generate data from some distribution:

Apply mean shift until all data points have converged:

Gather the result into clusters:

Visualize the clustering:

Properties & Relations  (4)

The derivative of UnitTriangle is a piecewise function:

The derivative of HeavisideLambda is a distribution:

At higher orders, the DiracDelta distribution appears:

Convert into Piecewise:

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

UnitTriangle is a special case of BSplineBasis:

Wolfram Research (2008), UnitTriangle, Wolfram Language function, https://reference.wolfram.com/language/ref/UnitTriangle.html.

Text

Wolfram Research (2008), UnitTriangle, Wolfram Language function, https://reference.wolfram.com/language/ref/UnitTriangle.html.

CMS

Wolfram Language. 2008. "UnitTriangle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnitTriangle.html.

APA

Wolfram Language. (2008). UnitTriangle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnitTriangle.html

BibTeX

@misc{reference.wolfram_2024_unittriangle, author="Wolfram Research", title="{UnitTriangle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/UnitTriangle.html}", note=[Accessed: 14-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_unittriangle, organization={Wolfram Research}, title={UnitTriangle}, year={2008}, url={https://reference.wolfram.com/language/ref/UnitTriangle.html}, note=[Accessed: 14-November-2024 ]}