abs(x)
The abs() function calculates the absolute value of the given number, or the magnitude in case of a complex number (computed as sqrt(x*conj(x))).
abs()
sqrt(x*conj(x))
abs(scalar) -> scalar