Absolute value function (abs)
Absolute value of a number, or modulus of a complex one.
How to write it
abs(x)
- x
- The number or expression. Takes an expression.
Examples
abs(-3)In the solver,
Open in the solverabs(-3)gives3.abs(3 - 5i)In the solver,
Open in the solverabs(3 - 5i)givessqrt(34).
Related functions
- arg
Argument of a complex number: its angle in radians.
- trunc
A number with its fractional part cut off.
- binomial
Binomial coefficient: the ways to choose k items out of n.
- times
Product of numbers: the function form of *.
- ceil
Least whole number not below a number.
- subtract
A difference: the function form of -.