How do I correctly write 3x3 matrices using the text editor?

  • Thread starter Thread starter applechu
  • Start date Start date
AI Thread Summary
To write 3x3 matrices in a text editor, using LaTeX is recommended. The correct syntax includes using commands like \begin{pmatrix} for round parentheses and \begin{bmatrix} for square brackets. Surround the LaTeX code with either ## or $$ to ensure proper formatting. A link to a manual on using the editor is provided for further assistance. Properly formatting matrices enhances clarity in mathematical discussions.
applechu
Messages
10
Reaction score
0
Hi:
I am a newbie to this forum, and I don't know how to
use the text editor correctly. If I hope to write an 3x3 matrices,
how to key in it correctly in this thread.
and furthermore, if there any manual about the editor, thanks a lot.
 
Physics news on Phys.org
I have tried a example as following, but still not work:
\begin{matrix}
1 & 1 & -1\\
1 & -1 & 1\\
1 & 1 & 1
\end{matrix}

is there any other method, thanks
 
applechu said:
I have tried a example as following, but still not work:
\begin{matrix}
1 & 1 & -1\\
1 & -1 & 1\\
1 & 1 & 1
\end{matrix}

is there any other method, thanks

That looks pretty good! If you want round parentheses around your matrix use pmatrix:
$$
\begin{pmatrix}
1 & 1 & -1\\
1 & -1 & 1\\
1 & 1 & 1
\end{pmatrix}
$$
and for square brackets use bmatrix:
$$
\begin{bmatrix}
1 & 1 & -1\\
1 & -1 & 1\\
1 & 1 & 1
\end{bmatrix}
$$.

Also, surround your LaTeX with either ## or $$ (click 'Quote' to check out my example).
 
thanks
 
Back
Top