Dim (positive difference)

Syntax


y = dim(x1, x2)

Description


The output y is the positive difference between x1 and x2, namely:


y = x1 - x2                for x1 > x2

0.0                        otherwise

Example


y = dim(cos(t), sin(t))