CASCALC89 COMMAND · NOT ON THE TI-89
constructMat(
Builds a matrix by evaluating an expression in two index variables for every row and column position.
Syntax
constructMat(Expr, Var1, Var2, numRows, numCols)
- Group
- Matrix
- Arguments
- Takes the expression, the row variable, the column variable, the number of rows and the number of columns.
- Availability
- Included
- Origin
- TI-Nspire CAS style command; the TI-89 Titanium handheld does not have it
Example
| Input | Result |
|---|---|
| constructMat(i+j,i,j,2,3) | [[2,3,4][3,4,5]] |
Typing constructMat(i+j,i,j,2,3) on the home screen and pressing ENTER returns [[2,3,4][3,4,5]].
Related commands
- crossP(Returns the cross product of two vectors.
- det(Returns the determinant of a square matrix.
- diag(Returns the main diagonal of a square matrix as a row vector.
- dim(Returns the dimensions of a matrix as {rows, columns}, or the number of elements of a list.
- dotP(Returns the dot product of two vectors.
- eigVc(Returns the eigenvectors of a square matrix as the columns of a matrix.
- eigVl(Returns the eigenvalues of a square matrix as a list.
- FillReplaces every element of an existing list or matrix variable with the same value.