This returns an identity matrix that has the given dimension.


  • 2ND + X-1 (MATRIX)
  • MATH
  • 5:identity(


:Prompt [A]
:If L1(1)L2(2):Then
::Disp "[A]"
::Pause [A]
::Disp "[B]"
::Pause [B]
::Disp "[A]*[B]"
::Pause [A]*[B]

Prompts for a matrix. If the matrix is not square, this determines that there is no identity for that matrix. If it is square, this determines the identity matrix, and proves it by multiplying the identity to the original and returning the result.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.