is the sign (signum) function, which extracts only the sign of a real number and returns one of three values.
It returns when is positive, when negative, and only when is exactly .
Domain and range. The domain is all real numbers, but the range consists of just the three values . The graph is two horizontal rays — height for and height for — with a single isolated point of height at the origin.
Symmetry. Since flipping the sign of flips the value, , the function is odd (symmetric about the origin). The value is consistent with this.
Discontinuities and jumps. The only discontinuity is at the origin . The left-hand limit is and the right-hand limit is , so they disagree and the jump has size ; the value itself is the midpoint . Everywhere else the function is constant and therefore continuous.
Relation to other functions. The sign function is closely tied to the absolute value:
The right-hand formula only works for . Differentiating gives (for ), and the function relates to the Heaviside step by .
Applications. The sign function is handy for expressing 'direction' or a positive/negative test in a formula. It appears in absolute-value calculations, in on-off (bang-bang) control, and in sign-based classification in machine learning — anywhere the direction of a value matters more than its magnitude.