The triangle function is defined by
Λ(x)= |
|
This is equal to the convolution of rectangle
function with itself (see Section 15.2.2).
The tri command computes the triangle function.
Example.
Input:
Output:
⎛ ⎝ | −x+1+1 | ⎞ ⎠ | ⎛ ⎝ | θ | ⎛ ⎝ | x−1 | ⎞ ⎠ | −θ | ⎛ ⎝ | x−1−1 | ⎞ ⎠ | ⎞ ⎠ | + | ⎛ ⎝ | 1+x−1 | ⎞ ⎠ | ⎛ ⎝ | θ | ⎛ ⎝ | −x+1 | ⎞ ⎠ | −θ | ⎛ ⎝ | −x+1−1 | ⎞ ⎠ | ⎞ ⎠ |