Identity Matrices

Description

We can use the identity_matrix() command to create an identity matrix of any dimension, say

(1)
\begin{align} I = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}, \end{align}

Sage Cell

Code

id3 = identity_matrix(QQ, 3)
id3

Options

None.

Tags

CC:

Primary Tags: Linear algebra: Matrices.

Secondary Tags: Matrices: Matrix basics, Matrix inverses.

Related Cells

Attribute

Permalink:

Author: R. Beezer

Date: 01 Mar 2020 21:11

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License