How to Post a Matrix in Precalculus Mathematics

  • Thread starter Thread starter Mano Jow
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Mano Jow
Messages
18
Reaction score
0
Hello,

I've been trying to use LaTeX to post a matrix but didn't succeed. Here's the code I have:
A = \left(\begin{array}{cc}m&3\\2&1/2\end{array}\right)

But when I put it between [ tex ][ /tex ] (without spaces) I get a '=>'. But here it's working, see [tex]A = \left(\begin{array}{cc}m&3\\2&1/2\end{array}\right)[/tex]

I'm trying to post it on Precalculus Mathematics sub forum.

What's happening? I've tried this code here and it worked...

Thanks!
 
Physics news on Phys.org
There's a well-known "feature" that when you preview LaTeX you are likely to see cached copies of generated LaTeX images which you used in previous posts. Refreshing the page in the browser or clearing the browser cache usually fixes such problems (but make a copy of the text first in case the process loses what you've already typed in).
 
I see.
But if I post it'll be ok, right?

Thanks!
 
Right. This particular problem only occurs when you're previewing a post.

By the way, it's recommended to do matrices like so:
Code:
A = \begin{pmatrix}m&3\\2&1/2\end{pmatrix}
The pmatrix environment puts in the parentheses for you automatically and also fixes some issues with the alignment of the cells.
 
Thanks a lot, really helped!