Sign

DOWNLOAD Mathematica Notebook Sign
SignReImAbs
Min Max
Re
Im Powered by webMathematica

The sign of a real number, also called sgn or signum, is -1 for a negative number (i.e., one with a minus sign "-"), 0 for the number zero, or +1 for a positive number (i.e., one with a plus sign "+"). In other words, for real x,

 sgn(x)={-1   for x<0; 0   for x=0; 1   for x>0.
(1)

For real x!=0, this can be written

 sgn(x)=x/(|x|)
(2)

and satisfies

 sgn(x)=sqrt(x)sqrt(1/x).
(3)

sgn(x) for real x can also be defined as

 sgn(x)=2H(x)-1,
(4)

where H(x) is the Heaviside step function.

The sign function is implemented in the Wolfram Language for real x as Sign[x]. For nonzero complex numbers, Sign[z] returns z/|z|, where |z| is the complex modulus of z.

sgn(0) can also be interpreted as an unspecified point on the unit circle in the complex plane (Rich and Jeffrey 1996).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.