logo

Sign function 📂Functions

Sign function

Definition

Sign function sgn:RR\mathrm{sgn} : \mathbb{R} \to \mathbb{R} is defined as follows.

sgn(x):={1x>00x=01x<0 \mathrm{sgn}(x) :=\begin{cases} 1 & x>0 \\ 0 & x=0 \\ -1 & x<0 \end{cases}

Explanation

It is mainly used to simplify the notation of equations or definitions. It is also written as sign\mathrm{sign}.

See Also