Sign Function

The sign function gives −1 for any negative real number, 0 for zero, or +1 for any positive real number.

Sign function

It is written:

f(x) = sign(x)

or

f(x) = sgn(x)

This is its graph:

Sign function
The Sign Function

 It is an odd function.

Plot the graph here