<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
Attribute | Type | Values |
---|---|---|
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" |
Property | Type |
---|---|
$g.anchor | point |
$g.backgroundColor | text |
$g.createIntervals | boolean |
$g.createVectors | boolean |
$g.disabled | boolean |
$g.displayBlanks | boolean |
$g.displayDecimals | integer |
$g.displayDigits | integer |
$g.displaySmallAsZero | number |
$g.draggable | boolean |
$g.expand | boolean |
$g.fixed | boolean |
$g.fixLocation | boolean |
$g.forceNumeric | boolean |
$g.forceSymbolic | boolean |
$g.format | text |
$g.functionSymbols | textList |
$g.hidden | boolean |
$g.isNumber | boolean |
$g.isNumeric | boolean |
$g.latex | latex |
$g.layer | number |
$g.list | [ math ] |
$g.matrix | [ math ] |
$g.matrixSize | numberList |
$g.number | number |
$g.numColumns | integer |
$g.numDimensions | integer |
$g.numListItems | integer |
$g.numRows | integer |
$g.padZeros | boolean |
$g.parseScientificNotation | boolean |
$g.positionFromAnchor | text |
$g.renderMode | text |
$g.simplify | text |
$g.splitSymbols | boolean |
$g.text | text |
$g.textColor | text |
$g.textStyleDescription | text |
$g.unordered | boolean |
$g.value | gcd |
$g.vector | [ math ] |
$g.x | math |
$g.y | math |
$g.z | math |
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>
.