Sign function (sign)
Sign of a number: -1, 0 or 1.
How to write it
sign(x)
- x
- A number. Takes a number.
Examples
sign(-4)In the solver,
Open in the solversign(-4)gives-1.
Related functions
- sqrt
Square root; sqrt(x) is the power x^(1/2).
- round
Nearest whole number, with halves rounded away from zero.
- subtract
A difference: the function form of -.
- re
Real part of a complex number.
- times
Product of numbers: the function form of *.
- quotient
Whole-number quotient of a division, without the remainder.