Changes

Jump to navigation Jump to search
Created page with "<div style="font-size:30px">'''MATRIXIDENTITY(n)'''</div><br/> *<math>n</math> is the order of the matrix. ==Description== *This function shows the identity matrix of a given..."
<div style="font-size:30px">'''MATRIXIDENTITY(n)'''</div><br/>
*<math>n</math> is the order of the matrix.

==Description==
*This function shows the identity matrix of a given matrix.
*In <math>MATRIXIDENTITY(n)</math>,<math>n</math> is the Order of identity matrix.
*Identity matrix is also called Unit matrix.
*Identity matrix of size n is the nxn square matrix with ones on the main diagonal and zeros on the other entries.
*Identity matrix is denoted by <math>I_n</math>.
*<math>I_1=[1]</math>,
<math>I_2 =\begin{bmatrix}
1 & 0 \\
0 & 1
\end{bmatrix}</math>,
<math>I_3= \begin{bmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}</math>......
<math>I_n =\begin{bmatrix}
1 & 0 &0 \cdots & 0 \\
0 & 1 & 0 &\cdots &0 \\
0 & 0 & 1 &\cdots &0 \\
\vdots & \ddots & \vdots \\
0 & 0 &0 & \cdots & 1
\end{bmatrix}</math>

==Examples==
1.MATRIXIDENTITY(3)
{| class="wikitable"
|-
| 1 || 0 ||0
|-
| 0 || 1 || 0
|-
| 0 || 0 ||1
|}
2. MATRIXIDENTITY(5)
{| class="wikitable"
|-
| 1 || 0 || 0 || 0 || 0
|-
| 0 || 1 || 0 || 0 ||0
|-
| 0 || 0 || 1|| 0 || 0
|-
| 0 || 0 || 0 || 1 || 0
|-
| 0 || 0 || 0 || 0 ||1
|}

==See Also==
*[[Manuals/calci/IM| IM]]
*[[Manuals/calci/MATRIXOPERATORS| MATRIXOPERATORS]]

==References==
*[https://en.wikipedia.org/wiki/Identity_matrix Identity]


*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]
writer
6,694

edits

Navigation menu