basty
- 94
- 0
How do you write a matrix such as below image in Latex, in this forum?
This discussion focuses on writing matrices in LaTeX, specifically using the pmatrix environment for standard matrices and the array environment for matrices with vertical lines. The pmatrix syntax is demonstrated with the example matrix containing integers, while the array environment is used for a matrix that includes a vertical line, showcasing the need for manual formatting. The provided LaTeX code snippets are essential for anyone looking to format matrices correctly in their documents.
PREREQUISITESStudents, researchers, and professionals in mathematics, engineering, or computer science who need to present matrices in LaTeX format.
\begin{pmatrix}
2 & 6 & 1 \\ 1 & 2 & -1 \\ 5 & 7 & -4
\end{pmatrix}
\left(
\begin{array}{rrr|r}
2 & 6 & 1 & 7 \\ 1 & 2 & -1 & -1 \\ 5 & 7 & -4 & 9
\end{array}
\right)