Difference between revisions of "Dimension Command"
From GeoGebra Manual
Line 4: | Line 4: | ||
:Returns the dimension of the vector. | :Returns the dimension of the vector. | ||
:{{example|1=<div><code><nowiki>Dimension[{1, 2, 0, -4, 3}]</nowiki></code> yields ''5''.</div>}} | :{{example|1=<div><code><nowiki>Dimension[{1, 2, 0, -4, 3}]</nowiki></code> yields ''5''.</div>}} | ||
+ | ;Dimension[ <Matrix> ] | ||
+ | :Returns the dimension of the matrix. | ||
+ | :{{example|1=<div><code><nowiki>Dimension[{{a, b}, {c, d}, {e, f}}]</nowiki></code> yields ''{3, 2}''.</div>}} |
Revision as of 11:12, 8 September 2011
This command works in CAS View only.
- Dimension[ <Vector> ]
- Returns the dimension of the vector.
- Example:
Dimension[{1, 2, 0, -4, 3}]
yields 5.
- Dimension[ <Matrix> ]
- Returns the dimension of the matrix.
- Example:
Dimension[{{a, b}, {c, d}, {e, f}}]
yields {3, 2}.