diff Function

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 .


Number Type Compulsory Default Description
1 real array Yes vector


Return type: real array