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
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...
Back
Top