使用方法/Math:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
 
(未显示同一用户的36个中间版本)
第1行: 第1行:
== 标题文本 ==
https://www.mediawiki.org/wiki/Extension:Math/TeX-header
== 渲染模式 ==
渲染模式选择 <code>[ 'source', 'native', 'mathjax' ]</code>。
=== forcemathmode ===
您可以通过向 ‎<nowiki><math></nowiki> 元素添加该 <code>forcemathmode</code> 属性来覆盖用户首选和默认渲染模式。例如,强制渲染图像 <nowiki><math forcemathmode="native">...</math></nowiki> 。
== 关键字 ==
== 关键字 ==


第5行: 第12行:
| <nowiki><math>\N</math></nowiki> || <math>\N</math>
| <nowiki><math>\N</math></nowiki> || <math>\N</math>
|-
|-
| <nowiki><math>1\lt2</math></nowiki> || <nowiki><math>1\lt2</math></nowiki>
| <nowiki>a = b \times c</nowiki> || <math>a = b \times c</math>
|-
|-
| <nowiki><math>2\gt1</math></nowiki> || <nowiki><math>2\gt1</math></nowiki>
| <nowiki>\text{复合}</nowiki> || <math>\text{复合}</math>
|-
| <nowiki>a = b \times c</nowiki> || <math>a = b \times c</math>
|-
|-
| <nowiki><math>a = \frac{b}{c}</math></nowiki> || <math>a = \frac{b}{c}</math>
| <nowiki><math>a = \frac{b}{c}</math></nowiki> || <math>a = \frac{b}{c}</math>
第30行: 第35行:
\dot{z} & = -\beta z + xy
\dot{z} & = -\beta z + xy
\end{align}</math>
\end{align}</math>
|}
== 多项式长除法 ==
{| class="wikitable"
|-
| <syntaxhighlight lang='tex'>\begin{array}{lr}
& x+1 \\
x+1  \!\!\!\!\!\! & \overline{)x^2 + 2x + 1} \\
& \underline{x^2+\ \ x\ \ \ \ \ \ \ } \\
& x + 1 \\
& \underline{x+1} \\
& 0 \end{array}</syntaxhighlight>
| <math>\begin{array}{lr}
& x+1 \\
x+1  \!\!\!\!\!\! & \overline{)x^2 + 2x + 1} \\
& \underline{x^2+\ \ x\ \ \ \ \ \ \ } \\
& x + 1 \\
& \underline{x+1} \\
& 0 \end{array}</math>
|}
|}


第93行: 第117行:
|-
|-
| <syntaxhighlight lang='tex'><math>\begin{align}
| <syntaxhighlight lang='tex'><math>\begin{align}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\   \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{align}</math></syntaxhighlight>
\end{align}</math></syntaxhighlight>
| <math>\begin{align}
| <math>\begin{align}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\   \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{align}</math>
\end{align}</math>
|}
== 矩阵 ==
{| class="wikitable"
|-
| <syntaxhighlight lang='tex'><math>\begin{matrix}
a & b \\
c & d \\
\end{matrix}</math></syntaxhighlight>
| <math>\begin{matrix}
a & b \\
c & d \\
\end{matrix}</math>
|-
| <syntaxhighlight lang='tex'><math>\begin{bmatrix}
a & b \\
c & d \\
\end{bmatrix}</math></syntaxhighlight>
| <math>\begin{bmatrix}
a & b \\
c & d \\
\end{bmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>\begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix}</math></syntaxhighlight>
| <math>\begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>\begin{vmatrix}
a & b \\
c & d \\
\end{vmatrix}</math></syntaxhighlight>
| <math>\begin{vmatrix}
a & b \\
c & d \\
\end{vmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>\begin{Vmatrix}
a & b \\
c & d \\
\end{Vmatrix}</math></syntaxhighlight>
| <math>\begin{Vmatrix}
a & b \\
c & d \\
\end{Vmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math> A = \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}
</math></syntaxhighlight>
| <math> A = \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}
</math>
|-
| <syntaxhighlight lang='tex'><math>A = \begin{bmatrix}
9 & 13 & 5 \\
1 & 11 & 7 \\
3 & 7 & 2 \\
6 & 0 & 7 \\
\end{bmatrix}</math></syntaxhighlight>
| <math>A = \begin{bmatrix}
9 & 13 & 5 \\
1 & 11 & 7 \\
3 & 7 & 2 \\
6 & 0 & 7 \\
\end{bmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>
0_{1,1} = \begin{bmatrix}
0 \end{bmatrix}
,\
0_{2,2} = \begin{bmatrix}
0 & 0 \\
0 & 0 \end{bmatrix}
,\
0_{2,3} = \begin{bmatrix}
0 & 0 & 0 \\
0 & 0 & 0 \end{bmatrix}
</math></syntaxhighlight>
| <math>
0_{1,1} = \begin{bmatrix}
0 \end{bmatrix}
,\
0_{2,2} = \begin{bmatrix}
0 & 0 \\
0 & 0 \end{bmatrix}
,\
0_{2,3} = \begin{bmatrix}
0 & 0 & 0 \\
0 & 0 & 0 \end{bmatrix}
</math>
|-
| <syntaxhighlight lang='tex'><math>A=\begin{bmatrix}
a & b \\
c & d \end{bmatrix}</math></syntaxhighlight>
| <math>A=\begin{bmatrix}
a & b \\
c & d \end{bmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>A=\begin{bmatrix}
a & b & c \\
d & e & f \\
g & h & i \end{bmatrix}</math></syntaxhighlight>
| <math>A=\begin{bmatrix}
a & b & c \\
d & e & f \\
g & h & i \end{bmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>
I_1 = \begin{bmatrix}
1 \end{bmatrix}
</math></syntaxhighlight>
| <math>
I_1 = \begin{bmatrix}
1 \end{bmatrix}
</math>
|-
| <syntaxhighlight lang='tex'><math>
I_2 = \begin{bmatrix}
1 & 0 \\
0 & 1 \end{bmatrix}
</math></syntaxhighlight>
| <math>
I_2 = \begin{bmatrix}
1 & 0 \\
0 & 1 \end{bmatrix}
</math>
|-
| <syntaxhighlight lang='tex'><math>
I_3 = \begin{bmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \end{bmatrix}
</math></syntaxhighlight>
| <math>
I_3 = \begin{bmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \end{bmatrix}
</math>
|-
| <syntaxhighlight lang='tex'><math>
I_n = \begin{bmatrix}
1 & 0 & \cdots & 0 \\
0 & 1 & \cdots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \cdots & 1 \end{bmatrix}
</math></syntaxhighlight>
| <math>
I_n = \begin{bmatrix}
1 & 0 & \cdots & 0 \\
0 & 1 & \cdots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \cdots & 1 \end{bmatrix}
</math>
|-
| <syntaxhighlight lang='tex'><math>\begin{bmatrix}
a & b \\
c & d \end{bmatrix} +
\begin{bmatrix}
e & f \\
g & h \end{bmatrix} =
\begin{bmatrix}
a+e & b+f \\
c+g & d+h \end{bmatrix}</math></syntaxhighlight>
| <math>\begin{bmatrix} a & b \\ c & d \end{bmatrix} +
\begin{bmatrix} e & f \\ g & h \end{bmatrix} =
\begin{bmatrix} a+e & b+f \\ c+g & d+h \end{bmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>\mathbf{AB}= \begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix} \begin{pmatrix}
p & q \\
r & s \\
\end{pmatrix}
= \begin{pmatrix}
ap+br & aq+bs \\
cp+dr & cq+ds \\
\end{pmatrix}</math></syntaxhighlight>
| <math>\mathbf{AB}= \begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix} \begin{pmatrix}
p & q \\
r & s \\
\end{pmatrix}
= \begin{pmatrix}
ap+br & aq+bs \\
cp+dr & cq+ds \\
\end{pmatrix}</math>
|-
| <syntaxhighlight lang='tex'><math>\mathbf {A} \mathbf {B} ={\begin{pmatrix}
0 & 1 \\
0 & 0 \\
\end{pmatrix}}{\begin{pmatrix}
0 & 0 \\
1 & 0 \\
\end{pmatrix}}={\begin{pmatrix}
1 & 0 \\
0 & 0 \end{pmatrix}}</math></syntaxhighlight>
| <math>\mathbf {A} \mathbf {B} ={\begin{pmatrix}
0 & 1 \\
0 & 0 \\
\end{pmatrix}}{\begin{pmatrix}
0 & 0 \\
1 & 0 \\
\end{pmatrix}}={\begin{pmatrix}
1 & 0 \\
0 & 0 \end{pmatrix}}</math>
|-
| <syntaxhighlight lang='tex'><math>
\overset{4\times2 HL}{\begin{bmatrix}
1 & 2 \\
3 & 4 \\
5 & 6 \\
7 & 8 \\
\end{bmatrix}}
\times
\overset{2\times3 HL}{\begin{bmatrix}
a & b & c \\
d & e & f \\
\end{bmatrix}}
= \overset{4\times3 HL}{\begin{bmatrix}
1a+2d & 1b+2e & 1c+2f \\
3a+4d & 3b+4e & 3c+4f \\
5a+6d & 5b+6e & 5c+6f \\
7a+8d & 7b+8e & 7c+8f \\
\end{bmatrix}}
</math></syntaxhighlight>
| <math>
\overset{4\times2 HL}{\begin{bmatrix}
1 & 2 \\
3 & 4 \\
5 & 6 \\
7 & 8 \\
\end{bmatrix}}
\times
\overset{2\times3 HL}{\begin{bmatrix}
a & b & c \\
d & e & f \\
\end{bmatrix}}
= \overset{4\times3 HL}{\begin{bmatrix}
1a+2d & 1b+2e & 1c+2f \\
3a+4d & 3b+4e & 3c+4f \\
5a+6d & 5b+6e & 5c+6f \\
7a+8d & 7b+8e & 7c+8f \\
\end{bmatrix}}
</math>
|}
== 其他 ==
{| class="wikitable"
|-
| <syntaxhighlight lang='tex'>\begin{align}
    \{ \overline{0}\overline{\underline{0}}\underline{0} \} \\
    \{ 00\overline{1}\overline{\underline{1}}\underline{1} \} \\
\end{align}</syntaxhighlight>
| <math>
\begin{align}
    \{ \overline{0}\overline{\underline{0}}\underline{0} \} \\
    \{ 00\overline{1}\overline{\underline{1}}\underline{1} \} \\
\end{align}
</math>
|}
|}