markdown(latex)常见数学符号代码

数学符号要在两边加上$,如 x^2 $ x^2 $

常用符号

符号 代码
x^2 上标 x^2
x^{abc} 多个字符 x^{abc}
x_2 下标 x_2
x_{abc} 多个字符 x_{abc}
\left.(大括号)\right. \left.(大括号)\right.
\frac{\cos x}{\sin x} 分式 \frac{\cos x}{\sin x}
\sqrt{x} 根号 \sqrt{x}
\sqrt[3]{x} 三次根 \sqrt[3]{x}
\vec{a} 向量 \vec{a}
\int_0^2 x {\rm d}x 积分 \int_0^2 x {\rm d}x
\lim\limits_{n \rightarrow +\infty} \frac{1}{n} 极限 \lim\limits_{n \rightarrow +\infty} \frac{1}{n(n+1)}
\sum_{n=0}^n \frac{1}{n} 累加 \sum_{i=0}^n \frac{1}{i^2}
\prod_{n=0}^n \frac{1}{n}累乘 \prod_{i=0}^n \frac{1}{i^2}

运算符

符号 代码
\pm \pm
\times \times
\div \div
\mid \mid
\nmid \nmid
\cdot \cdot
\circ \circ
\ast \ast
\odot \odot
\bigodot \bigodot
\otimes \otimes
\bigotimes \bigotimes
\oplus \oplus
\bigoplus \bigoplus
\leq \leq
\geq \geq
\neq \neq
\approx \approx
\equiv \equiv
\sum \sum
\prod \prod
\coprod \coprod
\int \int
\iint \iint
\iiint \iiint
\iiiint \iiiint
\oint \oint
\lim \lim
\infty \infty
\nabla \nabla
\because \because
\therefore \therefore
\forall \forall
\exists \exists
\not= \not=
\not> \not>
\not\subset \not\subset
\sim相似 \sim
\cong同构或全等 \cong
\perp垂直 \perp
\parallel \parallel
\nparallel \nparallel

集合

符号 代码
\emptyset \emptyset
\in \in
\notin \notin
\subset \subset
\supset \supset
\subseteq \subseteq
\supseteq \supseteq
\cap \cap
\bigcap \bigcap
\cup \cup
\bigcup \bigcup
\vee \vee
\bigvee \bigvee
\wedge \wedge
\bigwedge \bigwedge
\uplus \uplus
\biguplus \biguplus
\sqcup \sqcup
\bigsqcup \bigsqcup

三角以及对数

符号 代码
\sin \sin
\cos \cos
\tan \tan
\cot \cot
\sec \sec
\csc \csc
\log \log
\lg \lg
\ln \ln

矩阵

1

$$
 \left[
 \begin{matrix}
   1 & 2 \\
   3 & 4 
  \end{matrix}
  \right] 
\tag{1}  \\尾标
$$

数学式里加个\tag{1}可以使式子独立居中且带标记

\left[ \begin{matrix} 1 & 2 \\ 3 & 4 \end{matrix} \right] \tag{1}

2

\begin{pmatrix} 
1 & 2 \\ 
3 & 4 \\ 
\end{pmatrix}
\tag{*}

\begin{pmatrix} 1& 2 \\ 3 & 4 \\ \end{pmatrix} \tag{*}

\begin{vmatrix} 
1 & 2 \\ 
3 & 4 \\ 
\end{vmatrix}
\tag{**}

\begin{vmatrix} 1 & 2 \\ 3 & 4 \\ \end{vmatrix} \tag{**}

\begin{bmatrix} 
1 & 2 \\ 
3 & 4 
\end{bmatrix}

\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}

\begin{Bmatrix} 
1 & 2 \\ 
3 & 4 
\end{Bmatrix}

\begin{Bmatrix} 1 & 2 \\ 3 & 4 \end{Bmatrix}


分段函数

$$ f(x) = \begin{cases}
x & x>0 \\
0 & x=0 \\
-x & x<0 
\end{cases}\tag{2}
$$

f(x) = \begin{cases} x & x>0 \\ 0 & x=0 \\ -x & x<0 \end{cases}\tag{2}

在latex中,写大型公式换行时,可以使用\\换行
&可以是标记等式对齐(这在简书是无法实现),如:

f(x) &= 1+1+1+1\\
    &=2+2+2\\
    &=3

其他

符号 代码
\bot \bot
\angle \angle
30^\circ 30^\circ
\hat{y} \hat{y}
\check{y} \check{y}
\check{y} \check{y}
\breve{y} \breve{y}
\breve{y} \breve{y}
\bar{a} \bar{a}
\bar{a} \bar{a}
\tilde{a} \tilde{a}
\tilde{a} \tilde{a}
\widetilde{A} \widetilde{A}
\widetilde{A} \widetilde{A}
\vec{a} \vec{a}
\vec{a} \vec{a}
\dot{a} \dot{a}
\ddot{a} \ddot{a}
\uparrow \uparrow
\downarrow \downarrow
\Uparrow \Uparrow
\Downarrow \Downarrow
\rightarrow \rightarrow
\leftarrow \leftarrow
\Rightarrow \Rightarrow
\Leftarrow \Leftarrow
\longrightarrow \longrightarrow
\longleftarrow \longleftarrow
\Longrightarrow \Longrightarrow
\Longleftarrow \Longleftarrow

大型公式

符号 代码
\overline{x_1+x_2} \overline{x_1+x_2}
\underline{x_1+x_2} \underline{x_1+x_2}
\overbrace{x_1+\underbrace{x_2+\cdots+x_{n-1}}_{n-2个}+x_n}^{n个} \overbrace{x_1+\underbrace{x_2+\cdots+x_{n-1}}_{n-2个}+x_n}^{n个}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。