Sign function (source code)

= Sign function
{wiki=Sign_function}

The sign function, often denoted as \\( \\text\{sgn\}(x) \\), is a mathematical function that extracts the sign of a given real number \\( x \\).