The value of sgn(-1) + sgn(0) + sgn(1) is
Note: Sgn(x) is the signum function
sgnf(x)=⎧⎨⎩1,ifx>00,if x=0−1if x<0
is called the signum function.
The domain of the signum function is R and the range is the set {-1, 0, 1}
The graph of signum function is
sgn(-1) = -1
sgn(0) = 0
sgn(1) = 1
Therefore sgn(-1) + sgn(0) + sgn(1) = -1 +0 +1 = 0