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. »
- RealAbs can be used with Interval and CenteredInterval objects. »
Examples
open allclose allBasic Examples (4)
Scope (29)
Numerical Evaluation (6)
RealAbs remains unevaluated for imaginary numbers:
The precision of the output tracks the precision of the input:
Evaluate efficiently at high precision:
Compute the elementwise values of an array using automatic threading:
Or compute the matrix RealAbs function using MatrixFunction:
Compute worst-case guaranteed intervals using Interval and CenteredInterval objects:
Or compute average-case statistical intervals using Around:
Specific Values (5)
Values of RealAbs at particular points:
Visualization (3)
Function Properties (10)
RealAbs is defined only for real inputs:
The range of RealAbs is the non-negative reals:
RealAbs is an even function:
RealAbs is not an analytic function:
It has a singularity at the origin but no discontinuities:
RealAbs is neither nondecreasing nor nonincreasing:
RealAbs is not injective:
RealAbs is not surjective:
RealAbs is non-negative:
RealAbs is convex:
TraditionalForm formatting:
Differentiation and Integration (5)
Applications (7)
Properties & Relations (8)
Neat Examples (1)
Form nested functions involving RealAbs:
Text
Wolfram Research (2017), RealAbs, Wolfram Language function, https://reference.wolfram.com/language/ref/RealAbs.html (updated 2021).
CMS
Wolfram Language. 2017. "RealAbs." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/RealAbs.html.
APA
Wolfram Language. (2017). RealAbs. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RealAbs.html