使用方法/Math:修订间差异
来自康健生活
| (未显示同一用户的29个中间版本) | |||
| 第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> | | <nowiki>a = b \times c</nowiki> || <math>a = b \times c</math> | ||
|- | |- | ||
| <nowiki> | | <nowiki>\text{复合}</nowiki> || <math>\text{复合}</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> | |||
|} | |} | ||
| 第110行: | 第134行: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| <syntaxhighlight lang='tex'><math>\begin{matrix} a & b \\ c & d \end{matrix}</math></syntaxhighlight> | | <syntaxhighlight lang='tex'><math>\begin{matrix} | ||
| <math>\begin{matrix} a & b \\ c & d \end{matrix}</math> | 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> | | <syntaxhighlight lang='tex'><math>\begin{bmatrix} | ||
| <math>\begin{bmatrix} a & b \\ c & d \end{bmatrix}</math> | 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> | | <syntaxhighlight lang='tex'><math>\begin{pmatrix} | ||
| <math>\begin{pmatrix} a & b \\ c & d \end{pmatrix}</math> | 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> | | <syntaxhighlight lang='tex'><math>\begin{vmatrix} | ||
| <math>\begin{vmatrix} a & b \\ c & d \end{vmatrix}</math> | 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> | | <syntaxhighlight lang='tex'><math>\begin{Vmatrix} | ||
| <math>\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}</math> | 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} | | <syntaxhighlight lang='tex'><math> A = \begin{bmatrix} | ||
| 第129行: | 第183行: | ||
a_{21} & a_{22} & \cdots & a_{2n} \\ | a_{21} & a_{22} & \cdots & a_{2n} \\ | ||
\vdots & \vdots & \ddots & \vdots \\ | \vdots & \vdots & \ddots & \vdots \\ | ||
a_{m1} & a_{m2} & \cdots & a_{mn} | a_{m1} & a_{m2} & \cdots & a_{mn} \\ | ||
\end{bmatrix} | \end{bmatrix} | ||
</math></syntaxhighlight> | </math></syntaxhighlight> | ||
| 第136行: | 第190行: | ||
a_{21} & a_{22} & \cdots & a_{2n} \\ | a_{21} & a_{22} & \cdots & a_{2n} \\ | ||
\vdots & \vdots & \ddots & \vdots \\ | \vdots & \vdots & \ddots & \vdots \\ | ||
a_{m1} & a_{m2} & \cdots & a_{mn} | a_{m1} & a_{m2} & \cdots & a_{mn} \\ | ||
\end{bmatrix} | \end{bmatrix} | ||
</math> | </math> | ||
| 第144行: | 第198行: | ||
1 & 11 & 7 \\ | 1 & 11 & 7 \\ | ||
3 & 7 & 2 \\ | 3 & 7 & 2 \\ | ||
6 & 0 & 7 \end{bmatrix}</math></syntaxhighlight> | 6 & 0 & 7 \\ | ||
\end{bmatrix}</math></syntaxhighlight> | |||
| <math>A = \begin{bmatrix} | | <math>A = \begin{bmatrix} | ||
9 & 13 & 5 \\ | 9 & 13 & 5 \\ | ||
1 & 11 & 7 \\ | 1 & 11 & 7 \\ | ||
3 & 7 & 2 \\ | 3 & 7 & 2 \\ | ||
6 & 0 & 7 \end{bmatrix}</math> | 6 & 0 & 7 \\ | ||
\end{bmatrix}</math> | |||
|- | |- | ||
| <syntaxhighlight lang='tex'><math> | | <syntaxhighlight lang='tex'><math> | ||
| 第175行: | 第231行: | ||
0 & 0 & 0 \end{bmatrix} | 0 & 0 & 0 \end{bmatrix} | ||
</math> | </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> | | <syntaxhighlight lang='tex'><math> | ||
| 第224行: | 第296行: | ||
</math> | </math> | ||
|- | |- | ||
| <syntaxhighlight lang='tex'><math> | | <syntaxhighlight lang='tex'><math>\begin{bmatrix} | ||
a & b \\ | |||
c & d \end{bmatrix} + | |||
\begin{bmatrix} | |||
e & f \\ | |||
g & h \end{bmatrix} = | |||
\begin{bmatrix} | |||
\begin{bmatrix} | a+e & b+f \\ | ||
c+g & d+h \end{bmatrix}</math></syntaxhighlight> | |||
| <math>\begin{bmatrix} a & b \\ c & d \end{bmatrix} + | | <math>\begin{bmatrix} a & b \\ c & d \end{bmatrix} + | ||
\begin{bmatrix} e & f \\ g & h \end{bmatrix} = | \begin{bmatrix} e & f \\ g & h \end{bmatrix} = | ||
| 第260行: | 第332行: | ||
\end{pmatrix}</math> | \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> | | <syntaxhighlight lang='tex'><math>\mathbf {A} \mathbf {B} ={\begin{pmatrix} | ||
| <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> | 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> | | <syntaxhighlight lang='tex'><math> | ||
\overset{4\times2 | \overset{4\times2 HL}{\begin{bmatrix} | ||
1 & 2 \\ | 1 & 2 \\ | ||
3 & 4 \\ | 3 & 4 \\ | ||
| 第271行: | 第359行: | ||
\end{bmatrix}} | \end{bmatrix}} | ||
\times | \times | ||
\overset{2\times3 | \overset{2\times3 HL}{\begin{bmatrix} | ||
a & b & c \\ | a & b & c \\ | ||
d & e & f \\ | d & e & f \\ | ||
\end{bmatrix}} | \end{bmatrix}} | ||
= \overset{4\times3 | = \overset{4\times3 HL}{\begin{bmatrix} | ||
1a+2d & 1b+2e & 1c+2f \\ | 1a+2d & 1b+2e & 1c+2f \\ | ||
3a+4d & 3b+4e & 3c+4f \\ | 3a+4d & 3b+4e & 3c+4f \\ | ||
| 第301行: | 第389行: | ||
\end{bmatrix}} | \end{bmatrix}} | ||
</math> | </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> | |||
|} | |} | ||