signum ( x -- y )


Vocabulary
math.functions

Inputs
xa number


Outputs
ya number


Word description
Calculates the signum value. For a real number, x, this is its sign (-1, 0, or 1). For a complex number, x, this is the point on the unit circle of the complex plane that is nearest to x.

Definition


Methods