Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: How does one write a matrix in this forum?

  1. Jul 13, 2006 #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?
     
  2. jcsd
  3. Jul 13, 2006 #2
    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]
     
  4. Jul 13, 2006 #3
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook