Sarmate.net Sarmate.net
Accueil Fonctionnalités Offres Documentation Contact
Connexion Inscription

Écrire des matrices en LaTeX

Le package amsmath fournit plusieurs environnements de matrices, chacun avec un style de délimiteur différent : crochets, parenthèses, barres verticales ou aucun.

Types de matrices

LaTeX
% Crochets (bmatrix)
$\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ \quad
% Parenthèses (pmatrix)
$\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$ \quad
% Déterminant (vmatrix)
$\begin{vmatrix} 1 & 2 \\ 3 & 4 \end{vmatrix}$
EnvironnementDélimiteurUsage courant
matrixAucunMatrice nue
pmatrix( )Vecteurs, matrices générales
bmatrix[ ]Systèmes linéaires
vmatrix| |Déterminants
Vmatrix|| ||Normes matricielles

Grandes matrices avec points de suspension

LaTeX
\[
A = \begin{pmatrix}
    a_{11} & a_{12} & \cdots & a_{1n} \\
    a_{21} & a_{22} & \cdots & a_{2n} \\
    \vdots & \vdots & \ddots & \vdots \\
    a_{m1} & a_{m2} & \cdots & a_{mn}
\end{pmatrix}
\]

Exemple : système linéaire

LaTeX
\[
\begin{bmatrix}
    2 & 1 & -1 \\
    -3 & -1 & 2 \\
    -2 & 1 & 2
\end{bmatrix}
\begin{bmatrix} x \\ y \\ z \end{bmatrix}
=
\begin{bmatrix} 8 \\ -11 \\ -3 \end{bmatrix}
\]

Essayez dans Sarmate

Éditez, compilez et téléchargez vos documents LaTeX directement dans votre navigateur.

Ouvrir l'éditeur