Markdown 数学公式

Markdown 数学公式, 本文整理和收集了所有跟数学显示和数学公式有关的markdown知识点。

希腊字母

注意:以下都需要在表达式前后各加2个$才能正确显示。

例如:要显示α,在”\alpha” 前后分别加上$.

显示 命令 显示 命令
α \alpha β \beta
γ \gamma δ \delta
ε \epsilon ζ \zeta
η \eta θ \theta
ι \iota κ \kappa
λ \lambda μ \mu
ν \nu ξ \xi
π \pi ρ \rho
σ \sigma τ \tau
υ \upsilon φ \phi
χ \chi ψ \psi
ω \omega

特殊符号

注意:以下都需要在表达式前后各加2个$才能正确显示。

显示 命令
\infty \infty
\cup \cup
\cap \cap
\subset \subset
\subseteq \subseteq
\supset \supset
\in \in
\notin \notin
\varnothing \varnothing
\forall \forall
\exists \exists
\lnot \lnot
\nabla \nabla
\partial \partial

公式

注意:以下都需要在表达式前后各加1个$才能正确显示。

名称 数学表达式 markdown公式
上标 a^b a^b
下标 a_b a_b
分数 \frac{3+8a}{5b+6} \frac{3+8a}{5b+6}
求和号 \sum{3x^n} \sum{3x^n}
带范围求和 \sum_{n=1}^N{3x^n} \sum_{n=1}^N{3x^n}
求和号 \prod{3x^n} \prod{3x^n}
带范围求乘 \prod_{n=1}^N{3x^n} \prod_{n=1}^N{3x^n}
开方号 \sqrt[5]{100} \sqrt[5]{100}
积分 \int^5_1{f(x)}{\rm d}x \int^5_1{f(x)}{\rm d}x
二重积分 \iint^5_1{f(x)}{\rm d}x \iint^5_1{f(x)}{\rm d}x
三重积分 \iiint^5_1{f(x)}{\rm d}x \iiint^5_1{f(x)}{\rm d}x
正无穷 +\infty +\infty
负无穷 -\infty -\infty
左箭头 \lim_{n\rightarrow+\infty} n \lim_{n\rightarrow+\infty} n
大于等于 \geq \geq
小于等于 \leq \leq
包含于 \subset \subset
包含 \supset \supset
属于 \in \in
加减 \pm \pm
点乘 \cdot \cdot
\times \times
\div \div
不等于 \not= \not=
不小于 \not< \not<
不包含 \not\supset \not\supset
对数 \log \log
对数 \log_2{18} \log_2{18}
对数 \ln \ln
垂直 \bot \bot
\angle \angle
30度角 30^\circ 30^\circ
正弦 \sin \sin
余弦 \cos \cos
正切 \tan \tan
左箭头 \leftarrow \leftarrow
右箭头 \rightarrow \rightarrow
长箭头 \longrightarrow \longrightarrow
上箭头 \uparrow \uparrow
下箭头 \downarrow \downarrow

基本语法

注意:以下都需要在表达式前后各加1个$才能正确显示。
1.呈现位置
语句

$\sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t$

效果为:
\sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t

2.上下标
上标为^,下标为_:

$C_n^2$

表示为
C_n^2

3.矢量

$\vec a$

呈现为:
\vec a

$\overrightarrow{xy}$

呈现为:
\overrightarrow{xy}

4.括号

$\langle\rangle$

显示为:
\langle\rangle

$(\frac{x}{y})$

显示为:
(\frac{x}{y})

5.求和

$\sum_{i=1}^n{a_i}$

显示为
\sum_{i=1}^n{a_i}

6.极限

$\lim_{x\to 0}$

显示为:
\lim_{x\to 0}

7.积分

$\int_0^\infty{fxdx}$

显示为:
\int_0^\infty{fxdx}

8.分式

$\frac{公式1}{公式2}$

显示为
\frac{公式1}{公式2}

9.根式

$\sqrt[x]{y}$

显示为
\sqrt[x]{y}

10.特殊函数

$\sin x$

显示为
\sin x

$\ln x$

显示为
\ln x

$\max(A,B,C)$

显示为
\max(A,B,C)

矩阵

注意:以下都需要在表达式前后各加1个$才能正确显示。
语法:
在起始、结束标记处用下列词替换 matrix:

  • pmatrix :小括号边框
  • bmatrix :中括号边框
  • Bmatrix :大括号边框
  • vmatrix :单竖线边框
  • Vmatrix :双竖线边框
  • 横省略号:\cdots
  • 竖省略号:\vdots
  • 斜省略号:\ddots

不带括号的矩阵

$
  \begin{matrix}
   1 & 2 & 3 \\\
   4 & 5 & 6 \\\
   7 & 8 & 9
  \end{matrix}
$

效果为:
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}

带括号{}的矩阵

$
 \begin{Bmatrix}
   1 & 2 & 3 \\\
   4 & 5 & 6 \\\
   7 & 8 & 9
  \end{Bmatrix}
$

效果为:
\begin{Bmatrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{Bmatrix}

带括号[]的矩阵

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

效果为:
\begin{bmatrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{bmatrix}

带省略号的矩阵

$
\left[
\begin{matrix}
 1      & 2      & \cdots & 4      \\\
 7      & 6      & \cdots & 5      \\\
 \vdots & \vdots & \ddots & \vdots \\\
 8      & 9      & \cdots & 0      \\\
\end{matrix}
\right]
$

效果为:
\left[
\begin{matrix}
1 &2 &\cdots&4 \\
7 &6 &\cdots&5 \\
\vdots&\vdots&\ddots&\vdots \\
8 &9 &\cdots&0 \\
\end{matrix}
\right]

$\begin{bmatrix}
{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{bmatrix}$

效果为:
\begin{bmatrix}
{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{bmatrix}

方程组

$\begin{cases}
a_1x+b_1y+c_1z=d_1\\\
a_2x+b_2y+c_2z=d_2\\\
a_3x+b_3y+c_3z=d_3\\\
\end{cases}
$

效果为:
\begin{cases}
a_1x+b_1y+c_1z=d_1\\
a_2x+b_2y+c_2z=d_2\\
a_3x+b_3y+c_3z=d_3\\
\end{cases}

赞(0)

评论 抢沙发

评论前必须登录!