<intervalList>
<intervalList> is a Math
component that collects a sequence of intervals.
When creating an <intervalList>, separate items by spaces, not commas.
The component will default to displaying the list with commas. (The commas that
appear inside each interval — e.g. (-1, 2) — are part of the interval itself, not
separators between intervals.)
Attributes and Properties
Attributes for <intervalList>
Other (8)
asListboolean. Default value: true. Whether to render the items separated by commas (true) or with no separator (false).
avoidScientificNotationWhether to render numbers in full decimal form rather than scientific notation.
displayDecimalsNumber of decimal places to display when rendering this number.
displayDigitsNumber of significant digits to display when rendering this number.
displaySmallAsZeroThreshold below which numbers are displayed as zero.
maxNumbernumber. Default value: Infinity. Maximum number of intervals to retain in the list.
padZerosWhether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.
unorderedboolean. Default value: false. Whether the order of intervals in this list should be treated as unordered (e.g. for matching).
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.
fixedDefault 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.
isResponseWhether 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 <intervalList name="i">
Other (4)
$i.maxNumbernumber. Maximum number of intervals to retain in the list.
$i.numIntervalsnumber. The number of intervals in the list.
$i.numValuesnumber. The number of intervals in the list.
$i.unorderedboolean. Whether the order of items in this list should be treated as unordered (e.g. for matching).
Common to all components (3)
$i.doenetMLtext. The DoenetML source code that produced this component.
$i.hideboolean. Whether to hide this component from the rendered output.
$i.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <intervalList> as domain of a <piecewiseFunction>
Individual intervals in an <intervalList> can be accessed using array notation.