博客需要写公式?LATEX!
1.上下标:
$ E = mc^2 $ E = mc^2
$ F_i = max(F_{i-1}+233,F_{i-2}) $ F_i = max(F_{i-1}+233,F_{i-2})
2.分式 根式 省略号
$ \frac{2 * a}{3} $ \frac{2 * a}{3}
$ \sqrt[5]{3} $ \sqrt[5]{3}
$ \dots $ \dots
3.运算符号
$ \pm \times \div \cdot \cap \cup \geq \leq \neq \approx \equiv $ \pm \times \div \cdot \cap \cup \geq \leq \neq \approx \equiv
$ \sum_{1}^{n}mc^2 $ \sum_{1}^{n}mc^2
$ \int_{1}^{n}n^2 $ \int_{1}^{n}n^2
$ \lim_{x \to \infty} $ \lim_{x to \infty}
4.矩阵和行列式
$
\begin{matrix}
1 & 2 & 3 \
n & e-1 & 4 \
2^3 & n^2 & e
\end{matrix}
$
\begin{matrix}
1 & 2 & 3 \
n & e-1 & 4 \
2^3 & n^2 & e
\end{matrix}
用\换行 &隔开
$
A=\begin{bmatrix}
1&3\
3&3
\end{bmatrix}
$
A=\begin{bmatrix}
1&3\
3&3
\end{bmatrix}
bmatrix方括号
pmatrix圆括号
vmatrix行列式
Vmatrix矩阵的范数
5.分段函数
$
f(n) =
\begin{cases}
n-1, & text{if n <3} \
f(n-1)+3, & text{if n >=3}
\end{cases}
$
f(n) =
\begin{cases}
n-1, & text{if n <3} \
f(n-1)+3, & text{if n >=3}
\end{cases}