Difference between revisions of "Identity Command"

From GeoGebra Manual
Jump to: navigation, search
Line 4: Line 4:
 
:{{Example|1= <code>Identity[3]</code> gives you the matrix ''{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}''.}}
 
:{{Example|1= <code>Identity[3]</code> gives you the matrix ''{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}''.}}
 
:{{Note|1=If ''A'' is a square matrix of order ''n'', <code>A^0</code> produces the same matrix as <code>Identity[n]</code>.}}
 
:{{Note|1=If ''A'' is a square matrix of order ''n'', <code>A^0</code> produces the same matrix as <code>Identity[n]</code>.}}
==CAS Specific Syntax==
+
==CAS Syntax==
In [[CAS View]] you can use the same syntax:
 
 
;Identity[Number]: Returns the identity matrix with the given order.
 
;Identity[Number]: Returns the identity matrix with the given order.

Revision as of 14:50, 16 August 2011



Identity[Number]
Returns the identity matrix with the given order.
Example: Identity[3] gives you the matrix {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}.
Note: If A is a square matrix of order n, A^0 produces the same matrix as Identity[n].

CAS Syntax

Identity[Number]
Returns the identity matrix with the given order.
© 2024 International GeoGebra Institute