Maxima Function
signum (x)
For numeric x, returns 0 if x is 0, otherwise returns -1 or +1 as x is less than or greater than 0, respectively.
If x is not numeric then a simplified but equivalent form is returned.
For example, signum(-x)
gives -signum(x)
.