<wrapNumberPeriodic>
<wrapNumberPeriodic> is a Math Operator
component that wraps a number line around a circle.
Attributes and Properties
Attributes for <wrapNumberPeriodic>
Highlighted (3)
displayDigitsinteger. Default value: 3. Number of significant digits to display when rendering this number.
formatkeyword. Input format.
| Value | Description |
|---|---|
text (default) | Plain-text math notation (e.g., x^2 + 1). |
latex | LaTeX-formatted math (e.g., x^{2} + 1). |
simplifykeyword. Level of simplification applied to the expression.
| Value | Description |
|---|---|
none (default) | No simplification is applied. |
full | Fully simplify the expression. |
numbers | Simplify numeric subexpressions only, leaving symbolic structure intact. |
numbersPreserveOrder | Like numbers, but does not reorder commutative operands. |
normalizeOrder | Reorder commutative operands into a canonical form without simplifying values. |
Number display (5)
avoidScientificNotationboolean. Default value: false. Whether to render numbers in full decimal form rather than scientific notation.
displayDecimalsinteger. Default value: 2. Number of decimal places to display when rendering this number.
displayDigitsinteger. Default value: 3. Number of significant digits to display when rendering this number.
displaySmallAsZeronumber. Default value: 1e-14. Threshold below which numbers are displayed as zero.
padZerosboolean. Default value: false. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.
Positioning (2)
anchorpoint. Default value: . Coordinates of the anchor point used to position this component on a graph.
positionFromAnchorkeyword. Where this component sits relative to its anchor point.
| Value | Description |
|---|---|
upperRight | Place the component above and to the right of the anchor point. |
upperLeft | Place the component above and to the left of the anchor point. |
lowerRight | Place the component below and to the right of the anchor point. |
lowerLeft | Place the component below and to the left of the anchor point. |
top | Place the component directly above the anchor point. |
bottom | Place the component directly below the anchor point. |
left | Place the component directly to the left of the anchor point. |
right | Place the component directly to the right of the anchor point. |
center (default) | Center the component on the anchor point. |
Other (15)
assumptionsmath. Default value: . Assumptions applied when simplifying or comparing.
createIntervalsboolean. Default value: false. Whether range expressions are interpreted as intervals.
createVectorsboolean. Default value: false. Whether tuple-like expressions are interpreted as vectors.
displayBlanksboolean. Default value: true. Whether blanks (placeholders) are visibly rendered.
draggableboolean. Default value: true. Whether the math component can be dragged on a graph.
expandboolean. Default value: false. Whether to expand the expression.
functionSymbolstextList. Default value: ["f","g"]. Symbols treated as function names when parsing.
layernumber. Default value: 0. Z-order layer index when shown on a graph.
number. Default value: 0. Lower bound used by the operator.
parseScientificNotationboolean. Default value: false. Whether to parse expressions like 1e3 as scientific notation.
referencesAreFunctionSymbolsreference. References whose names should be treated as function symbols when parsing.
renderModetext. Default value: inline. How the math is rendered (e.g. "inline", "display").
splitSymbolsboolean. Default value: true. Whether multi-character symbols are split into a product of variables.
unorderedboolean. Default value: false. Whether tuple- or list-like math expressions should be treated as unordered for comparison.
number. Default value: 1. Upper bound used by the operator.
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <wrapNumberPeriodic name="w">
Highlighted (3)
$w.displayDigitsinteger. Number of significant digits to display when rendering this number.
$w.formattext. Input format.
$w.simplifytext. Level of simplification applied to the expression.
Number display (5)
$w.avoidScientificNotationboolean. Whether to render numbers in full decimal form rather than scientific notation.
$w.displayDecimalsinteger. Number of decimal places to display when rendering this number.
$w.displayDigitsinteger. Number of significant digits to display when rendering this number.
$w.displaySmallAsZeronumber. Threshold below which numbers are displayed as zero.
$w.padZerosboolean. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.
Positioning (2)
$w.anchorpoint. The coordinates where this component is anchored on the graph.
$w.positionFromAnchortext. Where this component sits relative to its anchor point.
Other (40)
$w.assumptionsmath. Assumptions applied when simplifying or comparing.
$w.backgroundColortext. Human-readable name for this component's background color, derived from the active style and theme.
$w.columns[ math ]. The matrix's entries grouped by column.
$w.createIntervalsboolean. Whether range expressions are interpreted as intervals.
$w.createVectorsboolean. Whether tuple-like expressions are interpreted as vectors.
$w.disabledboolean. Whether this component is disabled and cannot be interacted with.
$w.displayBlanksboolean. Whether blanks (placeholders) are visibly rendered.
$w.draggableboolean. Whether the math component can be dragged on a graph.
$w.expandboolean. Whether to expand the expression.
$w.fixedboolean. Whether this component's value is fixed and cannot be modified.
$w.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$w.functionSymbolstextList. Symbols treated as function names when parsing.
$w.isNumberboolean. Whether the expression evaluates to a finite number.
$w.isNumericboolean. Whether the expression evaluates to any number (including infinities).
$w.latexlatex. The expression rendered as a LaTeX string.
$w.layernumber. Z-order layer index when shown on a graph.
$w.list[ math ]. The math expression interpreted as a list (its elements).
$w.lowerValuenumber. Lower bound used by the operator.
$w.matrix[ math ]. The math expression interpreted as a matrix (its entries by row and column).
$w.matrixSizenumberList. The size of the math expression as a matrix, as a [numRows, numColumns] list.
$w.numbernumber. The numeric value of the expression (NaN if not a number).
$w.numColumnsinteger. The number of columns when the math expression is interpreted as a matrix.
$w.numDimensionsinteger. The number of dimensions if the math expression is interpreted as a vector or matrix.
$w.numListItemsinteger. The number of items when the math expression is interpreted as a list.
$w.numRowsinteger. The number of rows when the math expression is interpreted as a matrix.
$w.parseScientificNotationboolean. Whether to parse expressions like 1e3 as scientific notation.
$w.renderModetext. How the math is rendered (e.g. "inline", "display").
$w.rows[ math ]. The matrix's entries grouped by row.
$w.splitSymbolsboolean. Whether multi-character symbols are split into a product of variables.
$w.texttext. The expression rendered as a plain text string.
$w.textColortext. Human-readable name for this component's text color, derived from the active style and theme.
$w.textStyleDescriptiontext. Human-readable description of this component's text styling (color and any background color).
$w.unorderedboolean. Whether list-like values are treated as unordered.
$w.upperValuenumber. Upper bound used by the operator.
$w.valuewrapNumberPeriodic. The math expression value.
$w.vector[ math ]. The math expression interpreted as a vector (its components).
$w.xmath. The first component of the math expression when interpreted as a vector.
$w.ymath. The second component of the math expression when interpreted as a vector.
$w.zmath. The third component of the math expression when interpreted as a vector.
Common to all components (4)
$w.doenetMLtext. The DoenetML source code that produced this component.
$w.hideboolean. Whether to hide this component from the rendered output.
$w.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$w.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <wrapNumberPeriodic> with default bounds
The default lowerValue for <wrapNumberPeriodic> is 0, and the default upperValue is 1.
Example: <wrapNumberPeriodic> of user-input
The <wrapNumberPeriodic> component is applied to a <mathInput/>
Attribute Examples
Attribute Example: lowerValue, upperValue
Use the lowerValue and upperValue attributes to modify the default bounds
of <wrapNumberPeriodic>. The default lowerValue is 0 and the default upperValue is 1.