Difference between revisions of "Identity Command"
From GeoGebra Manual
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]: | + | ;Identity[ <Number n> ] |
− | :{{ | + | :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>}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ;Identity[Number]: | + | ;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 asIdentity[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 asIdentity[n]
. - This command is not dynamic. For example the result of
Identity[a]
will not change if a is changed.
- If A is a square matrix of order n,
- If A is a square matrix of order n,