abs(x)

Absolute value of real number x.

abs(z)

Modulus of complex number z.

abs(a)

Magnitude of array a.

abs(A)

Returns the Frobenius norm of matrix A.


See also sign floor ceil 


Example


abs( 2 )

2

abs( 3+3j )

4.2426

a = ( 2, 3, 4 )

2  3  4 

abs( a )

5.3852