<matrix>
<matrix>
is a Math
component that defines/renders a matrix for use in computations.
Attributes and Properties
Attribute | Type | Values |
---|---|---|
anchor = "…" | point | |
createIntervals = "…" | boolean | "true" "false" |
createVectors = "…" | boolean | "true" "false" |
defaultEntry = "…" | ||
displayBlanks = "…" | boolean | "true" "false" |
displayDecimals = "…" | integer | |
displayDigits = "…" | integer | |
displaySmallAsZero = "…" | number | |
draggable = "…" | boolean | "true" "false" |
expand = "…" | boolean | "true" "false" |
format = "…" | text | "text" "latex" |
functionSymbols = "…" | textList | |
layer = "…" | number | |
numColumns = "…" | integer | |
numRows = "…" | integer | |
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 |
---|---|
$m.anchor | point |
$m.backgroundColor | text |
$m.createIntervals | boolean |
$m.createVectors | boolean |
$m.disabled | boolean |
$m.displayBlanks | boolean |
$m.displayDecimals | integer |
$m.displayDigits | integer |
$m.displaySmallAsZero | number |
$m.draggable | boolean |
$m.expand | boolean |
$m.fixed | boolean |
$m.fixLocation | boolean |
$m.format | text |
$m.functionSymbols | textList |
$m.hidden | boolean |
$m.isNumber | boolean |
$m.isNumeric | boolean |
$m.latex | latex |
$m.layer | number |
$m.list | [ math ] |
$m.matrix | [ math ] |
$m.matrixSize | numberList |
$m.number | number |
$m.numColumns | integer |
$m.numDimensions | integer |
$m.numListItems | integer |
$m.numRows | integer |
$m.padZeros | boolean |
$m.parseScientificNotation | boolean |
$m.positionFromAnchor | text |
$m.renderMode | text |
$m.simplify | text |
$m.splitSymbols | boolean |
$m.text | text |
$m.textColor | text |
$m.textStyleDescription | text |
$m.unordered | boolean |
$m.value | matrix |
$m.vector | [ math ] |
$m.x | math |
$m.y | math |
$m.z | math |
Example: Create a <matrix>
from rows
Matrices can be quickly defined by listing row entries within nested <row>
components.
Individual entries can be accessed using array notation with the matrix
property.
Example: Create a <matrix>
from columns
Matrices can be quickly defined by listing column entries within nested <column>
components. Individual
entries can be accessed using array notation with the matrix
property.
Example: Create a <matrix>
of a given size
A <matrix>
of a given size can be generated using the numRows
and the numColumns
attributes. By
default, a zero matrix will be defined; to modify this use the defaultEntry
attribute.
Example: Create a <matrix>
from user-input rows
This example shows one method of populating the entries of a <matrix>
from user-input. See
also, <matrixInput>
.
Example: <matrix>
addition/ subtraction
The <math>
component with the simplify
attribute performs matrix addition and subtraction.
Example: <matrix>
multiplication
The <math>
component, along with both the simplify
and expand
attributes,
performs matrix multiplication.
Example: Multiplication by a scalar
The <math>
component with the simplify
attribute performs matrix multiplication by a scalar.
Example: <matrix>
from geometry
A coefficient matrix can be constructed from vectors or other
geometric objects by referencing the objects within the <row>
or <column>
components. The references should be enclosed in parentheses.
Attribute Example: numRows / numColumns
With numRows
and numColumns
, a zero matrix of a given size can be defined.
Attribute Example: defaultEntry
Use the defaultEntry
attribute to change the prefilled value for a matrix
of a specified size; the default value is .
Property Example: Attributes as properties
The numRows
attribute is also accesible as a property.