<abs>
What it does
The <abs>
component renders the absolute value of the enclosed math.
Attributes and Properties
The <abs>
component is a math operator, and shares relevant attributes and properties with the <math>
component.
Examples
Example: Render the absolute value of a math expression
The <abs>
component is used to render the absolute value of a math expression.
Example: Absolute value of <mathInput>
The <abs>
component is used to render the absolute value of a named <mathInput/>
.
Example: Absolute value of numerical properties
Children of the <abs>
component can include references to <mathInput>
values or other math
quantities, such as single-valued numerical properties of graphical objects. Invalid children are strings and tuples.
Example: Absolute value of a function
The <abs>
component is used to render the absolute value of a named <function>
within a <graph>
.
Special usage notes
Note that the <abs>
component cannot be used directly in attribute specification. You can, however, use the |
notation within an attribute specification.
You can also define a <math>
component separately, which contains the <abs>
component, and then reference it in an attribute specification.