diff

Returns the derivative of the argument with respect to its reference. If the argument has no reference the function returns the derivative with respect to the argument's index - in effect a vector containing the difference between successive values in the argument. For details on references see Vector References.

Arguments

Number Type Compulsory Default Description

1

real array

Yes

vector

Returns

Return type: real array