Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Latex > FAQ > Latex - FAQ > How to write matrices in Latex ? matrix, pmatrix, bmatrix, vmatrix, (...)

How to write matrices in Latex ? matrix, pmatrix, bmatrix, vmatrix, Vmatrix

All the versions of this article: [English] [français]

Here are few exemples to write quickly matrices.
You must use the following package:

\usepackage{amsmath}

Exemple:

$$
\begin{matrix}
a & b \\
c & d
\end{matrix}
\quad
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
\quad
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
\quad
\begin{vmatrix}
a & b \\
c & d
\end{vmatrix}
\quad
\begin{Vmatrix}
a & b \\
c & d
\end{Vmatrix}
$$

Any message or comments?

comments powered by Disqus