RealAbs

RealAbs[x]

gives the absolute value of the real number x.

Details

  • RealAbs is also known as modulus.
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • RealAbs[x] is effectively equivalent to Piecewise[{{x,x>=0}},-x].
  • RealAbs is continuous and differentiable everywhere except at the origin.
  • RealAbs[x] is left unevaluated if x is not a numeric quantity.
  • RealAbs automatically threads over lists.

Examples

open allclose all

Basic Examples  (3)

Evaluate numerically:

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

Plot RealAbs:

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

Derivative of RealAbs:

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

Indefinite integral:

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

Scope  (8)

Applications  (7)

Properties & Relations  (8)

Neat Examples  (1)

See Also

Abs  Norm  Piecewise  Sign  RealSign

Introduced in 2017
(11.1)