Skip to Content
ReferenceintervalList

<intervalList>

A list of intervals

<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>

Highlighted (1)
asList

boolean. Default value: true. Whether to render the items separated by commas (true) or with no separator (false).

Number display (5)
avoidScientificNotationAdded in 0.7.16

boolean. Default value: false. Whether to render numbers in full decimal form rather than scientific notation.

displayDecimals

integer. Default value: 2. Number of decimal places to display when rendering this number.

displayDigits

integer. Default value: 3. Number of significant digits to display when rendering this number.

displaySmallAsZero

number. Default value: 1e-14. Threshold below which numbers are displayed as zero.

padZeros

boolean. Default value: false. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.

Other (2)
maxNumber

number. Default value: Infinity. Maximum number of items to retain in the list.

unordered

boolean. 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)
copy

reference. Create an independent copy of another component by reference. Enter a references a $name.

disabled

boolean. Default value: false. Whether this component is disabled and cannot be interacted with.

extend

reference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.

fixed

boolean. Default value: false. Whether this component's value is fixed and cannot be modified.

fixLocation

boolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

hide

boolean. Default value: false. Whether to hide this component from the rendered output.

isResponse

boolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.

name

text. The name used to reference this component from elsewhere in the document.

styleNumber

integer. Default value: 1. The style number used to select this component's visual styling from the available style definitions.

Properties for <intervalList name="i">

Number display (5)
$i.avoidScientificNotationIn development

boolean. Whether to render numbers in full decimal form rather than scientific notation.

$i.displayDecimalsIn development

integer. Number of decimal places to display when rendering this number.

$i.displayDigitsIn development

integer. Number of significant digits to display when rendering this number.

$i.displaySmallAsZeroIn development

number. Threshold below which numbers are displayed as zero.

$i.padZerosIn development

boolean. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.

Other (5)
$i.maxNumber

number. Maximum number of items to retain in the list.

$i.numComponentsIn development

number. The number of items in the list.

$i.numIntervals

number. The number of intervals in the list.

$i.numValues

number. The number of values in the list.

$i.unordered

boolean. Whether the order of items in this list should be treated as unordered (e.g. for matching).

Common to all components (8)
$i.disabledIn development

boolean. Whether this component is disabled and cannot be interacted with.

$i.doenetML

text. The DoenetML source code that produced this component.

$i.fixedIn development

boolean. Whether this component's value is fixed and cannot be modified.

$i.fixLocationIn development

boolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

$i.hiddenIn development

boolean. Whether this component is hidden from the rendered output.

$i.hide

boolean. Whether to hide this component from the rendered output.

$i.isResponseIn development

boolean. Whether this component is treated as a response for the purposes of assessment.

$i.styleNumber

integer. 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.

Last updated on