Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Sign function
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Definition== The signum function of a real number <math>x</math> is a [[piecewise]] function which is defined as follows:<ref name=":0" /> <math display="block"> \sgn x :=\begin{cases} -1 & \text{if } x < 0, \\ 0 & \text{if } x = 0, \\ 1 & \text{if } x > 0. \end{cases}</math> 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 {{math|−1}}, {{math|+1}} or {{math|0,}} which can then be used in mathematical expressions or further calculations. For example: <math display="block">\begin{array}{lcr} \sgn(2) &=& +1\,, \\ \sgn(\pi) &=& +1\,, \\ \sgn(-8) &=& -1\,, \\ \sgn(-\frac{1}{2}) &=& -1\,, \\ \sgn(0) &=& 0\,. \end{array}</math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)