Difference between revisions of "Dimension Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
{{command|vector-matrix}}
 
{{command|vector-matrix}}
 
;Dimension[ <Vector> ]
 
;Dimension[ <Vector> ]
:Returns the dimension of the vector.
+
:Gives 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> ]
 
;Dimension[ <Matrix> ]
:Returns the dimension of the matrix.
+
:Gives the dimension of the matrix.
 +
:{{example|1=<div><code><nowiki>Dimension[{{1, 2}, {3, 4}, {5, 6}}]</nowiki></code> yields ''{3, 2}''.</div>}}
 +
==CAS Syntax==
 +
;Dimension[ <Vector> ]
 +
:Gives the dimension of the vector.
 +
:{{example|1=<div><code><nowiki>Dimension[{1, 2, 0, -4, 3}]</nowiki></code> yields ''5''.</div>}}
 +
;Dimension[ <Matrix> ]
 +
:Gives the dimension of the matrix.
 
:{{example|1=<div><code><nowiki>Dimension[{{a, b}, {c, d}, {e, f}}]</nowiki></code> yields ''{3, 2}''.</div>}}
 
:{{example|1=<div><code><nowiki>Dimension[{{a, b}, {c, d}, {e, f}}]</nowiki></code> yields ''{3, 2}''.</div>}}

Revision as of 10:23, 19 September 2012


Dimension[ <Vector> ]
Gives the dimension of the vector.
Example:
Dimension[{1, 2, 0, -4, 3}] yields 5.
Dimension[ <Matrix> ]
Gives the dimension of the matrix.
Example:
Dimension[{{1, 2}, {3, 4}, {5, 6}}] yields {3, 2}.

CAS Syntax

Dimension[ <Vector> ]
Gives the dimension of the vector.
Example:
Dimension[{1, 2, 0, -4, 3}] yields 5.
Dimension[ <Matrix> ]
Gives the dimension of the matrix.
Example:
Dimension[{{a, b}, {c, d}, {e, f}}] yields {3, 2}.
© 2024 International GeoGebra Institute