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个$才能正确显示。

Markdown 数学公式

公式

注意:以下都需要在表达式前后各加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.呈现位置
语句i=0Nabg(t,i)dt\sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t
效果为:
i=0Nabg(t,i)dt\sum_{i=0}^N\int_{a}^{b}g(t,i)\text{d}t

2.上下标
上标为^,下标为_:
Cn2C_n^2 表示为Cn2C_n^2

3.矢量
a\vec a呈现为a\vec a
xy\overrightarrow{xy}呈现为xy\overrightarrow{xy}

4.括号
\langle\rangle 显示为\langle\rangle
(xy)(\frac{x}{y}) 显示为(xy)(\frac{x}{y})

5.求和
i=1nai\sum_{i=1}^n{a_i},显示为i=1nai\sum_{i=1}^n{a_i}

6.极限
limx0\lim_{x\to 0},显示为limx0\lim_{x\to 0}

7.积分
0fxdx\int_0^\infty{fxdx},显示为0fxdx\int_0^\infty{fxdx}

8.分式
公式1公式2\frac{公式1}{公式2},显示为公式1公式2\frac{公式1}{公式2}

9.根式
yx\sqrt[x]{y},显示为yx\sqrt[x]{y}

10.特殊函数
sinx\sin x显示为sinx\sin x;
lnx\ln x显示为lnx\ln x;
max(A,B,C)\max(A,B,C)显示为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}
$
Bash

效果为:
123456789\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}
$
Bash

效果为:
{123456789}\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}
$
Bash

效果为:
[123456789]\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]
$
Bash

效果为:
[124765890]\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}$
Bash

效果为:
[a11a12a1na21a22a2nam1am2amn]\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}
$
Bash

效果为:
{a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3\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}

Python教程

Java教程

Web教程

数据库教程

图形图像教程

大数据教程

开发工具教程

计算机教程

登录

注册