Calculates the difference between adjacent values in array.
For example:
u = {1,2,5,10,20};
y = {1,3,5,10};
function diff extends TRANSFORM.Icons.Function; input Real u[:] "Scalar array"; output Real y[size(u, 1) - 1]; end diff;