How does one write a matrix in this forum?

  • Thread starter Thread starter interested_learner
  • Start date Start date
  • Tags Tags
    Forum Matrix
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
interested_learner
Messages
210
Reaction score
1
I tried to enter a matrix in this forum and all I get is a big mess when I go to preview the matrix. It seems that the tool decides to get rid of the spaces in the matrix. These spaces are important. For instance if k = the rotation matrix with the first row 0 -1 and the second row 1 0

_ _
| 0 -1 |
k= |_ 1 0 _|

Does someone have a suggestion on a better way to write this?
 
Physics news on Phys.org
Click on the following to see the code:

[tex]\begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array}[/tex]

If you want brackets, then:

[tex]\left[ \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right][/tex]

Notice that the amount of c's control the columns, such as:

[tex]\left( \begin{array}{cccc} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{array} \right)[/tex]