添加数学公式支持 | \(E=mc^2\)
发表于 : 2021年 12月 8日 17:59
支持Tex、MathML、AsciiMath语法,可使用在线工具可以辅助使用:
myscript: https://webdemo.myscript.com/views/math/index.html
MathType demo: https://demo.wiris.com/mathtype/en/developers.php
推荐教程: https://math.meta.stackexchange.com/que ... -reference
在帖子中插入公式的方法如下,分为行内公式和独行公式。
行内公式:
质能方程 \(E=mc^2\)
独行公式:
求根公式
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]
柯西积分公式
\[
f(a) = \frac{1}{2\pi i} \oint\frac{f(z)}{z-a}dz
\]
矩阵
$$
\begin{pmatrix}
1 & a_1 & a_1^2 & \cdots & a_1^n \\
1 & a_2 & a_2^2 & \cdots & a_2^n \\
\vdots & \vdots& \vdots & \ddots & \vdots \\
1 & a_m & a_m^2 & \cdots & a_m^n
\end{pmatrix}
$$
使用到的库: https://www.mathjax.org/
myscript: https://webdemo.myscript.com/views/math/index.html
MathType demo: https://demo.wiris.com/mathtype/en/developers.php
推荐教程: https://math.meta.stackexchange.com/que ... -reference
在帖子中插入公式的方法如下,分为行内公式和独行公式。
行内公式:
代码: 全选
使用 \(...........\) 添加公式,例如
\(E=mc^2\)
独行公式:
代码: 全选
使用 \[.............\] 或 $$ ..........$$ 添加公式
代码: 全选
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]
柯西积分公式
代码: 全选
\[
f(a) = \frac{1}{2\pi i} \oint\frac{f(z)}{z-a}dz
\]
f(a) = \frac{1}{2\pi i} \oint\frac{f(z)}{z-a}dz
\]
矩阵
代码: 全选
$$
\begin{pmatrix}
1 & a_1 & a_1^2 & \cdots & a_1^n \\
1 & a_2 & a_2^2 & \cdots & a_2^n \\
\vdots & \vdots& \vdots & \ddots & \vdots \\
1 & a_m & a_m^2 & \cdots & a_m^n
\end{pmatrix}
$$
\begin{pmatrix}
1 & a_1 & a_1^2 & \cdots & a_1^n \\
1 & a_2 & a_2^2 & \cdots & a_2^n \\
\vdots & \vdots& \vdots & \ddots & \vdots \\
1 & a_m & a_m^2 & \cdots & a_m^n
\end{pmatrix}
$$
使用到的库: https://www.mathjax.org/