<abs>

<abs> is a Math Operator component that renders the absolute value of the enclosed math.

Attributes and Properties

Attributes for <abs>
AttributeTypeValues
anchor = "…"point
createIntervals = "…"boolean"true" "false"
createVectors = "…"boolean"true" "false"
displayBlanks = "…"boolean"true" "false"
displayDecimals = "…"integer
displayDigits = "…"integer
displaySmallAsZero = "…"number
draggable = "…"boolean"true" "false"
expand = "…"boolean"true" "false"
format = "…"text"text" "latex"
functionSymbols = "…"textList
layer = "…"number
padZeros = "…"boolean"true" "false"
parseScientificNotation = "…"boolean"true" "false"
positionFromAnchor = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center"
referencesAreFunctionSymbols = "…"
renderMode = "…"text
simplify = "…"text"none" "full" "numbers" "numberspreserveorder"
splitSymbols = "…"boolean"true" "false"
unordered = "…"boolean"true" "false"
Props for <abs name="a">
PropertyType
$a.anchorpoint
$a.backgroundColortext
$a.createIntervalsboolean
$a.createVectorsboolean
$a.disabledboolean
$a.displayBlanksboolean
$a.displayDecimalsinteger
$a.displayDigitsinteger
$a.displaySmallAsZeronumber
$a.draggableboolean
$a.expandboolean
$a.fixedboolean
$a.fixLocationboolean
$a.formattext
$a.functionSymbolstextList
$a.hiddenboolean
$a.isNumberboolean
$a.isNumericboolean
$a.latexlatex
$a.layernumber
$a.list[ math ]
$a.matrix[ math ]
$a.matrixSizenumberList
$a.numbernumber
$a.numColumnsinteger
$a.numDimensionsinteger
$a.numListItemsinteger
$a.numRowsinteger
$a.padZerosboolean
$a.parseScientificNotationboolean
$a.positionFromAnchortext
$a.renderModetext
$a.simplifytext
$a.splitSymbolsboolean
$a.texttext
$a.textColortext
$a.textStyleDescriptiontext
$a.unorderedboolean
$a.valueabs
$a.vector[ math ]
$a.xmath
$a.ymath
$a.zmath

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.