signum
Signum, also called the sign function, is a mathematical function that extracts the sign of a real number. It maps a real input to -1, 0, or 1, depending on whether the input is negative, zero, or positive.
For real numbers, sgn(x) = -1 if x < 0, sgn(x) = 0 if x = 0, and sgn(x) = 1
Properties include that the sign function is odd: sgn(-x) = -sgn(x), and it is discontinuous at 0, being
In calculus, the derivative of sgn(x) is 0 for x ≠ 0 and is not defined at x
Origin and usage: the term signum comes from Latin signum, meaning sign or mark. In programming and