5

用LaTex表达向量和矩阵

 3 years ago
source link: https://www.maixj.net/wz/latex-matrix-24363
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

用LaTex表达向量和矩阵

2021年1月31日 / 14次阅读MathJax

线性代数太重要了,本文记录如何在网页上用mathjax表达向量和矩阵。

\begin{bmatrix}
1 \\ 3 \\ 5 \end{bmatrix}
[135]

多个列向量就是matrix:

\begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \end{bmatrix}
[123456789]

上面用的都是{bmatrix},还有其它的不同的“括号”:

\begin{pmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \end{pmatrix}
(123456789)
\begin{Bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \end{Bmatrix}
{123456789}
\begin{vmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \end{vmatrix}
|123456789|
\begin{Vmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \end{Vmatrix}
‖123456789‖

下面是很大的矩阵的写法:

\begin {pmatrix}
     1 & a_1 & a_1^2 & \cdots & a_1^n \\
     1 & a_2 & a_2^2 & \cdots & a_2^n \\
     \vdots  & \vdots& \vdots & \ddots & \vdots \\
     1 & a_m & a_m^2 & \cdots & a_m^n    
\end {pmatrix}
(1a1a12⋯a1n1a2a22⋯a2n⋮⋮⋮⋱⋮1amam2⋯amn)

增广矩阵,augmented matrix:

\left [
    \begin {array} {cc|c}
      1&2&3\\
      4&5&6
    \end {array}
\right ]
[123456]

最后来个小矩阵 (abcd)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK