Difference between revisions of "Identity Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{command +{{command|cas=true))
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}</noinclude>
 
{{command|cas=true|vector-matrix}}
 
{{command|cas=true|vector-matrix}}
; Identity[Number n]: Returns the identity matrix with the given order (<math>n\times n</math>).
+
;Identity[ <Number n> ]
:{{Example|1= <code>Identity[3]</code> gives you the matrix ''<math>\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\end{pmatrix}</math>''.}}
+
:Gives the identity matrix of the given order.
:{{Note|1=If ''A'' is a square matrix of order ''n'', <code>A^0</code> produces the same matrix as <code>Identity[n]</code>.<br>This command is not dynamic. ie <code>Identity[a]</code> will not change when '''a''' is changed.}}
+
:{{example|1=<div><code><nowiki>Identity[3]</nowiki></code> yields the matrix ''<math>\begin{pmatrix}
 
+
1&0&0\\
 +
0&1&0\\
 +
0&0&1
 +
\end{pmatrix}</math>''.</div>}}
 +
{{note|1=<div>
 +
* If ''A'' is a square matrix of order ''n'', <code><nowiki>A^0</nowiki></code> yields the same as <code><nowiki>Identity[n]</nowiki></code>.
 +
* This command is not dynamic. For example the result of <code><nowiki>Identity[a]</nowiki></code> will not change if ''a'' is changed.</div>}}
 
==CAS Syntax==
 
==CAS Syntax==
;Identity[Number]: Returns the identity matrix with the given order.
+
;Identity[ <Number> ]
 +
:Gives the identity matrix of the given order.
 +
:{{example|1=<div><code><nowiki>Identity[3]</nowiki></code> yields the matrix ''<math>\begin{pmatrix}
 +
1&0&0\\
 +
0&1&0\\
 +
0&0&1
 +
\end{pmatrix}</math>''.</div>}}
 +
{{note|1=<div>
 +
* If ''A'' is a square matrix of order ''n'', <code><nowiki>A^0</nowiki></code> yields the same as <code><nowiki>Identity[n]</nowiki></code>.
 +
* This command is not dynamic. For example the result of <code><nowiki>Identity[a]</nowiki></code> will not change if ''a'' is changed.</div>}}

Revision as of 11:21, 14 September 2012



Identity[ <Number n> ]
Gives the identity matrix of the given order.
Example:
Identity[3] yields the matrix \begin{pmatrix} 1&0&0\\ 0&1&0\\ 0&0&1

\end{pmatrix}
.
Note:
  • If A is a square matrix of order n, A^0 yields the same as Identity[n].
  • This command is not dynamic. For example the result of Identity[a] will not change if a is changed.

CAS Syntax

Identity[ <Number> ]
Gives the identity matrix of the given order.
Example:
Identity[3] yields the matrix \begin{pmatrix} 1&0&0\\ 0&1&0\\ 0&0&1

\end{pmatrix}
.
Note:
  • If A is a square matrix of order n, A^0 yields the same as Identity[n].
  • This command is not dynamic. For example the result of Identity[a] will not change if a is changed.
© 2024 International GeoGebra Institute