<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AIdentity</id>
	<title>TI-BASIC:Identity - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AIdentity"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Identity&amp;action=history"/>
	<updated>2026-06-10T12:47:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Identity&amp;diff=618&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Identity&amp;diff=618&amp;oldid=prev"/>
		<updated>2016-02-24T18:10:12Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=IDENTITY.GIF&lt;br /&gt;
|summary=Creates an &amp;#039;&amp;#039;n&amp;#039;&amp;#039; by &amp;#039;&amp;#039;n&amp;#039;&amp;#039; identity matrix.&lt;br /&gt;
|syntax=identity(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)&lt;br /&gt;
|location=Press:&lt;br /&gt;
# MATRX (on the 83) or 2ND MATRX (83+ or higher) to access the matrix menu.&lt;br /&gt;
# LEFT to access the MATH submenu.&lt;br /&gt;
# 5 to select identity(, or use arrows.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The identity( command generates an identity matrix: that is, a matrix [B] such that for any other matrix [A], [A]*[B]=[A] (if [A] is the right size to make the multiplication valid). &lt;br /&gt;
&lt;br /&gt;
The identity matrix is square (that is, the row dimension equals the column dimension); all of its elements are 0 except for the elements along the main diagonal (the diagonal going from top left to bottom right).&lt;br /&gt;
&lt;br /&gt;
The command itself takes one argument: the size of the matrix, used for both row and column size, that is, identity(&amp;#039;&amp;#039;n&amp;#039;&amp;#039; creates an &amp;#039;&amp;#039;n&amp;#039;&amp;#039; by &amp;#039;&amp;#039;n&amp;#039;&amp;#039; matrix.&lt;br /&gt;
&lt;br /&gt;
 :dim([A]&lt;br /&gt;
 :identity(Ans(2→[B]&lt;br /&gt;
 :[A][B]=[A]  // should always return 1, meaning &amp;#039;true&amp;#039;&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
The identity( command can be used as a quick way to create an empty square matrix: 0identity(&amp;#039;&amp;#039;n&amp;#039;&amp;#039; will create an &amp;#039;&amp;#039;n&amp;#039;&amp;#039; by &amp;#039;&amp;#039;n&amp;#039;&amp;#039; matrix containing only 0 as an element. This is faster and smaller than the [[TI-BASIC:Dim|Dim(]] and [[TI-BASIC:Fill|Fill(]] commands used for the same purpose:&lt;br /&gt;
&lt;br /&gt;
 :{5,5→dim([A]&lt;br /&gt;
 :Fill(0,[A]&lt;br /&gt;
 can be&lt;br /&gt;
 :0identity(5→[A]&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#invaliddim|ERR:INVALID DIM]]&amp;#039;&amp;#039;&amp;#039; occurs if the size is not an integer 1-99. In practice, however, even identity(37 requires more free RAM than the calculator ever has.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Det|Det(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>