Function Reference
— Mapping Function: sign (x)

Compute the signum function, which is defined as

For complex arguments, sign returns x ./ abs (x).