Markdown中使用数学公式
公式标记
行内使用$$
两个美元符号包裹,整行使用$$$$
两对美元符号包裹,这种公式一般用于展示,单行的用于引用。
上标与下标
上标和下标分别使用^
和_
来表示。例如x_i^2
:
x
i
2
x_i^2
xi2,\log_2 x
:
log
2
x
\log_2 x
log2x。
如果需要使用
1
0
10
10^{10}
1010需要使用10^{10}
花括号括起来{}
如果需要使用
1
0
2
3
{10^2}^3
1023 需要使用{10^2}^3
花括号括起来前面的内容。
字母的对应表格
显示 | 代码 |
---|
α
\alpha
α | \alpha |
β
\beta
β | \beta |
γ
\gamma
γ | \gamma |
δ
\delta
δ | \delta |
ϵ
\epsilon
ϵ | \epsilon |
ζ
\zeta
ζ | \zeta |
η
\eta
η | \eta |
θ
\theta
θ | \theta |
ι
\iota
ι | \iota |
κ
\kappa
κ | \kappa |
λ
\lambda
λ | \lambda |
μ
\mu
μ | \mu |
ν
\nu
ν | \nu |
ξ
\xi
ξ | \xi |
ο
\omicron
ο | \omicron |
π
\pi
π | \pi |
ρ
\rho
ρ | \rho |
σ
\sigma
σ | \sigma |
τ
\tau
τ | \tau |
υ
\upsilon
υ | \upsilon |
ϕ
\phi
ϕ | \phi |
χ
\chi
χ | \chi |
ψ
\psi
ψ | \psi |
ω
\omega
ω | \omega |
特殊函数与符号
显示 | 代码 |
---|
±
\pm
± | \pm |
∓
\mp
∓ | \mp |
×
\times
× | \times |
÷
\div
÷ | \div |
∣
\mid
∣ | \mid |
∤
\nmid
∤ | \nmid |
∘
\circ
∘ | \circ |
∙
\bullet
∙ | \bullet |
⋅
\cdot
⋅ | \cdot |
∗
\ast
∗ | \ast |
⊙
\odot
⊙ | \odot |
⨀
\bigodot
⨀ | \bigodot |
⊗
\otimes
⊗ | \otimes |
⨂
\bigotimes
⨂ | \bigotimes |
⊕
\oplus
⊕ | \oplus |
⨁
\bigoplus
⨁ | \bigoplus |
<
\lt
< | \lt |
>
\gt
> | \gt |
≤
\leq
≤ | \leq |
≥
\geq
≥ | \geq |
≠
\neq
= | \neq |
≈
\approx
≈ | \approx |
≡
\equiv
≡ | \equiv |
∼
\sim
∼ | \sim |
≃
\simeq
≃ | \simeq |
≅
\cong
≅ | \cong |
≺
\prec
≺ | \prec |
⊲
\lhd
⊲ | \lhd |
∑
\sum
∑ | \sum |
∏
\prod
∏ | \prod |
∐
\coprod
∐ | \coprod |
集合运算
显示 | 代码 |
---|
∅
\emptyset
∅ | \emptyset |
∅
\varnothing
∅ | \varnothing |
∈
\in
∈ | \in |
∉
\notin
∈/ | \notin |
⊂
\subset
⊂ | \subset |
⊃
\supset
⊃ | \supset |
∪
\cup
∪ | \cup |
∪
\cup
∪ | \cup |
⊆
\subseteq
⊆ | \subseteq |
⊇
\supseteq
⊇ | \supseteq |
⊊
\subsetneq
⊊ | \subsetneq |
⊋
\supsetneq
⊋ | \supsetneq |
⋃
\bigcup
⋃ | \bigcup |
⋂
\bigcap
⋂ | \bigcap |
⋁
\bigvee
⋁ | \bigvee |
⋀
\bigwedge
⋀ | \bigwedge |
⊎
\uplus
⊎ | \uplus |
⨄
\biguplus
⨄ | \biguplus |
⊔
\sqcup
⊔ | \sqcup |
⨆
\bigsqcup
⨆ | \bigsqcup |
对数运算符
显示 | 代码 |
---|
log
\log
log | \log |
lg
\lg
lg | \lg |
ln
\ln
ln | \ln |
三角运算
显示 | 代码 |
---|
⊥
\bot
⊥ | \bog |
∠
\angle
∠ | \angle |
3
0
∘
30^\circ
30∘ | 30^\circ |
sin
\sin
sin | \sin |
cos
\cos
cos | \cos |
tan
\tan
tan | \tan |
cot
\cot
cot | \cot |
sec
\sec
sec | \sec |
csc
\csc
csc | \csc |
微积分运算符
显示 | 代码 |
---|
′
\prime
′ | \prime |
∫
\int
∫ | \int |
∬
\iint
∬ | \iint |
∭
\iiint
∭ | \iiint |
∮
\oint
∮ | \oint |
lim
\lim
lim | \lim |
∞
\infty
∞ | \infty |
∇
\nabla
∇ | \nabla |
逻辑运算符
显示 | 代码 |
---|
∵
\because
∵ | \because |
∴
\therefore
∴ | \therefore |
∀
\forall
∀ | \forall |
∃
\exists
∃ | \exists |
≠
\not=
= | \not= |
¬
\lnot
¬ | \lnot |
⊢
\vdash
⊢ | \vdash |
⊨
\vDash
⊨ | \vDash |
∧
\land
∧ | \land |
∨
\lor
∨ | \lor |
⊤
\top
⊤ | \top |
⊥
\bot
⊥ | \bot |
方式
显示 | 代码 |
---|
4
a
c
b
{4ac \over b}
b4ac | ${4ac \over b} |
b
−
c
2
a
{b-c} \over {2a}
2ab−c | {b-c} \over {2a} |
a
−
b
b
c
\frac{a-b}{bc}
bca−b | \frac{a-b}{bc} |
b
a
\frac ba
ab | \frac ba |