The identity( Command

Command Summary

Creates an n by n identity matrix.

Command Syntax


Menu Location


  1. MATRX (on the 83) or 2ND MATRX (83+ or higher) to access the matrix menu.
  2. LEFT to access the MATH submenu.
  3. 5 to select identity(, or use arrows.

Calculator Compatibility


Token Size

1 byte

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).

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).

The command itself takes one argument: the size of the matrix, used for both row and column size, that is, identity(n) creates an n by n matrix.

:[A][B]=[A]  // should always return 1, meaning 'true'


The identity( command can be used as a quick way to create an empty square matrix: 0identity(n) will create an n by n matrix containing only 0 as an element. This is faster and smaller than the dim( and Fill( commands used for the same purpose:

can be

Error Conditions

  • ERR:INVALID DIM occurs if the size is not an integer 1-99. In practice, however, identity(21) is already too large for the calculator to generate.
  • ERR:MEMORY occurs if the size of the created matrix exceeds memory limits. This limit is hard-fixed to 3611 bytes (the size of a 20x20 matrix), regardless of having sufficient RAM to hold a larger matrix.

Related Commands


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.