ABS

Member Of Menu: 
Complex
Real
Array
Argument Types: 
Real
Complex
Symbol
Expression
Array
Result Type(s): 
Real
Expression
Invertible: 
No
Valid In Expression: 
Yes
Stack Diagram: 
Real1 Real2
Complex1 Real2
Array1 Real2
Symbol1 Expression2
Expression1 Expression2

This function returns the absolute value of its input argument. For a real number input, the result is always a positive real number with the same magnitude. So, -5 will become 5 when passed through this function.

For a complex input, the length of a vector rooted at the origin to the coordinate on the real and imaginary axis is the result of this function.

For complex or real matrices and vectors, the result is the Frobenius norm of the array. This is equal to the square root of the sum of the squares of the absolute values of each element of the array.