Abs

Abs[z]

gives the absolute value of the real or complex number z.

Details

  • Abs is also known as modulus.
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • For complex numbers z, Abs[z] gives the modulus .
  • Abs[z] is left unevaluated if z is not a numeric quantity.
  • Abs automatically threads over lists.

Examples

open allclose all

Basic Examples  (3)

Real numbers:

In[1]:=
Click for copyable input
Out[1]=

Complex numbers:

In[2]:=
Click for copyable input
Out[2]=

Abs threads element-wise over lists:

In[1]:=
Click for copyable input
Out[1]=
In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Generalizations & Extensions  (3)

Applications  (2)

Properties & Relations  (15)

Possible Issues  (3)

Neat Examples  (2)

See Also

RealAbs  Re  Im  Arg  AbsArg  Mod  ComplexExpand  Norm  Sign  Piecewise

Tutorials

Introduced in 1988
(1.0)