delta

The difference between the first and last points of a vector.

Syntax

delta(vector)

Argument

vector
The vector expression.

Example

Templex Expression Result
{delta({3, 5, 7, 9})} 6
{delta(4, 3, 2, 1, 0)} 4
{delta(cos(0:(2*PI):(PI/24))} 0

A plot of the last example is shown below:

Figure 1.


Comments

The result is the difference between the first and last element of a vector. Only the first and last elements in the vector are compared, even though other elements might have lesser or greater values.