<gcd>

<gcd> is a Math Operator component that accepts a list of integer values separated by spaces and returns the greatest common divisor of those integers.

Attributes and Properties

Attributes for <gcd>
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"
forceNumeric = "…"boolean"true" "false"
forceSymbolic = "…"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 <gcd name="g">
PropertyType
$g.anchorpoint
$g.backgroundColortext
$g.createIntervalsboolean
$g.createVectorsboolean
$g.disabledboolean
$g.displayBlanksboolean
$g.displayDecimalsinteger
$g.displayDigitsinteger
$g.displaySmallAsZeronumber
$g.draggableboolean
$g.expandboolean
$g.fixedboolean
$g.fixLocationboolean
$g.forceNumericboolean
$g.forceSymbolicboolean
$g.formattext
$g.functionSymbolstextList
$g.hiddenboolean
$g.isNumberboolean
$g.isNumericboolean
$g.latexlatex
$g.layernumber
$g.list[ math ]
$g.matrix[ math ]
$g.matrixSizenumberList
$g.numbernumber
$g.numColumnsinteger
$g.numDimensionsinteger
$g.numListItemsinteger
$g.numRowsinteger
$g.padZerosboolean
$g.parseScientificNotationboolean
$g.positionFromAnchortext
$g.renderModetext
$g.simplifytext
$g.splitSymbolsboolean
$g.texttext
$g.textColortext
$g.textStyleDescriptiontext
$g.unorderedboolean
$g.valuegcd
$g.vector[ math ]
$g.xmath
$g.ymath
$g.zmath

Example: <gcd> of nested list of integers

The integer arguments to the <gcd> function are entered directly between the opening and closing tags.


Example: <gcd> of variable number of user-inputs

The user is prompted to enter the size of a list of integers using a <mathInput>. This number of <mathInput> blanks are then generated with a <repeat>. Finally, the <gcd> of the entered values is computed with reference to the named <repeat>.


Example: <gcd> used in a multiple-choice problem

The <gcd> component is used to render each available <choice> component inside an <answer>.