<row>
(in a matrix)
<row>
is a Math
component that defines the individual row entries in a <matrix>
.
Attributes and Properties
Attribute | Type | Values |
---|---|---|
bottom = "…" | text | |
functionSymbols = "…" | ||
halign = "…" | text | |
header = "…" | boolean | "true" "false" |
left = "…" | text | |
parseScientificNotation = "…" | "true" "false" | |
referencesAreFunctionSymbols = "…" | ||
rowNum = "…" | text | |
splitSymbols = "…" | "true" "false" | |
valign = "…" | text |
Property | Type |
---|---|
$r.bottom | text |
$r.disabled | boolean |
$r.fixed | boolean |
$r.fixLocation | boolean |
$r.halign | text |
$r.header | boolean |
$r.hidden | boolean |
$r.left | text |
$r.rowNum | text |
$r.valign | text |
Example: Defining a <matrix>
with <row>
components
One of several methods for defining a <matrix>
in Doenet is to nest <row>
components inside the opening and closing tags. Individual rows can be accessed using index notation with the rows
property of the <matrix>
.
Example: A <row>
with symbolic math
Since a <row>
is a Math Component, some of the general attributes of a <math>
also work inside a <row>
, such as functionSymbols
. To use other <math>
attributes (such as simplify
), you can nest individual <math>
components within a <row>
.
Attribute Example: functionSymbols
The functionSymbols
attribute designates special characters or strings that are to be considered functions. By default, only the characters and are considered function symbols when employed within a Math Component.
Attribute Example: splitSymbols
By default, letters placed adjacent to one another in a <math>
component are separated by Doenet for computations, so xyz
is interpreted as , rather than a single variable composed of three letters. To override this default behavior, set the splitSymbols attribute to false.
Since a <row>
is a type of Math Component, it follows this convention, with the exception that spaces between individual entries in a <row>
are considered distinct entries (similar to the entries in a <mathList>
, while in a general <math>
, a space represents implied multiplication.)
Attribute Example: referencesAreFunctionSymbols
The referencesAreFunctionSymbols
attribute designates special characters or strings
that are to be considered functions, when they are references from another component by
name. In this case, the symbolic function letters are selected at random from a list of
6 possibilities.
Note that, even though f
and g
are default function symbols when written directly, in
this example they are referenced values and therefore we need to tell Doenet that they
represent functions.
Property Example: rows
Technically speaking, the rows
property belongs to the parent <matrix>
, rather than
the <row>
. The information is repeated here, however, because it is a useful way
of accessing individual rows and entries.