Lably
Skip to content

Sign function

Function returning minus 1, zero or plus 1

  • 7 min read
  • 5 chapters

Related on Lably

Through Mathematics, Function (mathematics) and Sign (mathematics)

Definition

The signum function of a real number x is a piecewise function which is defined as follows: sgn⁡x:={−1if x<0,0if x=0,1if x>0.

The law of trichotomy states that every real number must be positive, negative or zero. The signum function denotes which unique category a number falls into by mapping it to one of the values −1, +1 or 0, which can then be used in mathematical expressions or further calculations.

For example: sgn⁡(2)=+1,sgn⁡(π)=+1,sgn⁡(−8)=−1,sgn⁡(−12)=−1,sgn⁡(0)=0.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Functions