How does one write a matrix in this forum? (1 Viewer)

Users Who Are Viewing This Thread (Users: 0, Guests: 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?
 
807
0
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]
 

The Physics Forums Way

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top