Sign function
Appearance
In mathematics and especially in computer science, the sign function is a logical function which extracts the sign of a real number. The sign function is often represented as sgn and can be defined thus:
Any real number can be expressed as the product of its absolute value and its sign function:
- .