Example of absolute value
Input interpretation |
---|
absolute value | detailed definition |
Result |
The absolute value of a real number x is denoted |x| and defined as the “unsigned” portion of x, |x| | = | xsgn(x) | = | {-x | for x<=0 x | for x>=0, (auto right match) where sgn(x) is the sign function. The absolute value is therefore always greater than or equal to 0. The absolute value of x for real x is plotted above. |