1 <?xml version=
"1.0" encoding=
"utf-8" ?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"application/xhtml+xml; charset=utf-8" />
6 <meta name=
"generator" content=
"Docutils 0.13: http://docutils.sourceforge.net/" />
7 <title>Mathematics
</title>
8 <link rel=
"stylesheet" href=
"../input/data/html-base.css" type=
"text/css" />
9 <link rel=
"stylesheet" href=
"../input/data/xhtml11.css" type=
"text/css" />
12 <div class=
"document" id=
"mathematics">
13 <h1 class=
"title">Mathematics
</h1>
15 <p>Docutils supports inline math with the prefix or postfix
<span class=
"docutils literal">:math:
</span>
16 role specificator,
<math xmlns=
"http://www.w3.org/1998/Math/MathML">
17 <mrow><mi>n
</mi><mo>!
</mo><mo>+
</mo><mo>sin
</mo><mo>(
</mo><msubsup><mi>x
</mi><mi>n
</mi><mn>2</mn></msubsup><mo>)
</mo></mrow></math> and
<math xmlns=
"http://www.w3.org/1998/Math/MathML">
18 <mrow><msub><mi>A
</mi><mtext>c
</mtext></msub><mo>=
</mo><mfrac>
19 <mrow><mi>π
</mi></mrow>
20 <mrow><mn>4</mn></mrow></mfrac><msup><mi>d
</mi><mn>2</mn></msup></mrow></math>, as well as displayed math via the
21 <cite>math
</cite> directive:
</p>
23 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
26 <mtd><mi>f
</mi><mo>(
</mo><mi>ϵ
</mi><mo>)
</mo><mo>=
</mo><mfrac>
27 <mrow><mn>1</mn></mrow>
28 <mrow><mn>1</mn><mo>+
</mo><mo>exp
</mo><mfenced open=
"(" close=
")">
30 <mrow><mi>ε
</mi></mrow>
31 <mrow><msub><mi>k
</mi><mtext>B
</mtext></msub><mi>T
</mi></mrow></mfrac></mrow></mfenced></mrow></mfrac></mtd></mtr></mtable></math>
33 <p>Content may start on the first line of the directive, e.g.
</p>
35 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
38 <mtd><mi>N
</mi><mo>=
</mo><mfrac>
39 <mrow><mtext>number of apples
</mtext></mrow>
40 <mrow><mn>7</mn></mrow></mfrac></mtd></mtr></mtable></math>
42 <p>Equations can be labeled with a reference name using the
<span class=
"docutils literal">:name:
</span> option.
43 See
<a class=
"reference internal" href=
"#eq-m">eq:M
</a> and
<a class=
"reference internal" href=
"#eq-schrodinger">eq:schrödinger
</a> below.
</p>
44 <p>The determinant of the matrix
</p>
46 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
49 <mtd><mstyle fontweight=
"bold">
50 <mrow><mi>M
</mi></mrow></mstyle><mo>=
</mo><mfenced open=
"(" close=
")">
55 <mtd><mi>b
</mi></mtd></mtr>
58 <mtd><mi>d
</mi></mtd></mtr></mtable></mrow></mfenced></mtd></mtr></mtable></math>
60 <p>is
<math xmlns=
"http://www.w3.org/1998/Math/MathML">
61 <mrow><mo>|
</mo><mstyle fontweight=
"bold">
62 <mrow><mi>M
</mi></mrow></mstyle><mo>|
</mo><mo>=
</mo><mi>a
</mi><mi>d
</mi><mo>-
</mo><mi>b
</mi><mi>c
</mi></mrow></math>.
</p>
63 <p>More than one display math block can be put in one math directive.
64 For example, the following sum and integral with limits:
</p>
66 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
69 <mtd><munderover><mo>∫
</mo><mn>0</mn><mn>1</mn></munderover><msup><mi>x
</mi><mi>n
</mi></msup><mi>d
</mi><mi>x
</mi><mo>=
</mo><mfrac>
70 <mrow><mn>1</mn></mrow>
71 <mrow><mi>n
</mi><mo>+
</mo><mn>1</mn></mrow></mfrac></mtd></mtr></mtable></math>
74 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
77 <mtd><munderover><mo>∑
</mo>
78 <mrow><mi>n
</mi><mo>=
</mo><mn>1</mn></mrow><mi>m
</mi></munderover><mi>n
</mi><mo>=
</mo><mfrac>
79 <mrow><mi>m
</mi><mo>(
</mo><mi>m
</mi><mo>+
</mo><mn>1</mn><mo>)
</mo></mrow>
80 <mrow><mn>2</mn></mrow></mfrac></mtd></mtr></mtable></math>
82 <p>LaTeX-supported Unicode math symbols can be used in math roles and
84 <p>The Schrödinger equation
</p>
85 <div id=
"eq-schrodinger">
86 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
89 <mtd><mi>i
</mi><mi>ℏ
</mi><mfrac>
90 <mrow><mo>∂
</mo></mrow>
91 <mrow><mo>∂
</mo><mi>t
</mi></mrow></mfrac><mo>Ψ
</mo><mo>=
</mo><mover>
92 <mrow><mi>H
</mi></mrow><mo>^
</mo></mover><mo>Ψ
</mo><mo>,
</mo></mtd></mtr></mtable></math>
94 <p>with the
<em>wave function
</em> <math xmlns=
"http://www.w3.org/1998/Math/MathML">
95 <mrow><mo>Ψ
</mo></mrow></math>, describes how the quantum state of a
96 physical system changes in time.
</p>
98 <dt>Math-Accents:
</dt>
99 <dd><table class=
"borderless">
101 <col style=
"width: 33%" />
102 <col style=
"width: 33%" />
103 <col style=
"width: 33%" />
106 <tr><td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
108 <mrow><mi>a
</mi></mrow><mo>´
</mo></mover></mrow></math> <span class=
"docutils literal">\acute{a}
</span></p></td>
109 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
111 <mrow><mi>t
</mi></mrow><mo>˙
</mo></mover></mrow></math> <span class=
"docutils literal">\dot{t}
</span></p></td>
112 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
114 <mrow><mi>γ
</mi></mrow><mo>^
</mo></mover></mrow></math> <span class=
"docutils literal"><span class=
"pre">\hat{\gamma}
</span></span></p></td>
116 <tr><td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
118 <mrow><mi>a
</mi></mrow><mo>`
</mo></mover></mrow></math> <span class=
"docutils literal">\grave{a}
</span></p></td>
119 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
121 <mrow><mi>t
</mi></mrow><mo>¨
</mo></mover></mrow></math> <span class=
"docutils literal">\ddot{t}
</span></p></td>
122 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
124 <mrow><mi>α
</mi></mrow><mo>˜
</mo></mover></mrow></math> <span class=
"docutils literal"><span class=
"pre">\tilde{\alpha}
</span></span></p></td>
126 <tr><td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
128 <mrow><mi>x
</mi></mrow><mo>˘
</mo></mover></mrow></math> <span class=
"docutils literal">\breve{x}
</span></p></td>
129 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
131 <mrow><mi>t
</mi></mrow><mo>⃛
</mo></mover></mrow></math> <span class=
"docutils literal">\dddot{t}
</span></p></td>
132 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
134 <mrow><mi>ı
</mi></mrow><mo>⃗
</mo></mover></mrow></math> <span class=
"docutils literal"><span class=
"pre">\vec{\imath}
</span></span></p></td>
136 <tr><td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
138 <mrow><mi>a
</mi></mrow><mo>ˇ
</mo></mover></mrow></math> <span class=
"docutils literal">\check{a}
</span></p></td>
139 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
141 <mrow><mi>a
</mi></mrow><mo>¯
</mo></mover></mrow></math> <span class=
"docutils literal">\bar{a}
</span></p></td>
142 <td><p><math xmlns=
"http://www.w3.org/1998/Math/MathML">
144 <mrow><mi>R
</mi></mrow><mo>⃗
</mo></mover></mrow></math> <span class=
"docutils literal">\vec{R}
</span></p></td>
152 <p>Modulation Transfer Function:
</p>
154 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
157 <mtd><mtext>MTF
</mtext><mo>=
</mo><mfenced open=
"|" close=
"|">
159 <mrow><mi>ℱ
</mi><mo>{
</mo><mi>s
</mi><mo>(
</mo><mi>x
</mi><mo>)
</mo><mo>}
</mo></mrow>
160 <mrow><mi>ℱ
</mi><mo>{
</mo><mi>s
</mi><mo>(
</mo><mi>x
</mi><mo>)
</mo><mo>}
</mo><msub><mo>|
</mo>
161 <mrow><msub><mi>ω
</mi>
162 <mrow><mi>x
</mi></mrow></msub><mo>=
</mo><mn>0</mn></mrow></msub></mrow></mfrac></mrow></mfenced><mo>=
</mo><mtext>abs
</mtext><mfenced open=
"(" close=
")">
164 <mrow><munderover><mo>∫
</mo>
165 <mrow><mo>-
</mo><mo>∞
</mo></mrow>
166 <mrow><mo>∞
</mo></mrow></munderover><mi>s
</mi><mo>(
</mo><mi>x
</mi><mo>)
</mo><msup><mtext>e
</mtext>
167 <mrow><mtext>i
</mtext><msub><mi>ω
</mi>
168 <mrow><mi>x
</mi></mrow></msub><mi>x
</mi></mrow></msup><mtext>d
</mtext>
169 <mrow><mi>x
</mi></mrow></mrow>
170 <mrow><munderover><mo>∫
</mo>
171 <mrow><mo>-
</mo><mo>∞
</mo></mrow>
172 <mrow><mo>∞
</mo></mrow></munderover><mi>s
</mi><mo>(
</mo><mi>x
</mi><mo>)
</mo><mtext>d
</mtext>
173 <mrow><mi>x
</mi></mrow></mrow></mfrac></mrow></mfenced><mo>.
</mo></mtd></mtr></mtable></math>
175 <p>Math split over two lines: If a double backslash is detected outside a
176 <span class=
"docutils literal"><span class=
"pre">\begin{...}
</span> <span class=
"pre">\end{...}
</span></span> pair, the math code is wrapped in an
<a class=
"reference external" href=
"ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf">AMSmath
</a>
177 <span class=
"docutils literal">align
</span> environment:
</p>
179 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
182 <mtd><msub><mi>s
</mi>
183 <mrow><mtext>out
</mtext></mrow></msub><mo>(
</mo><mi>x
</mi><mo>)
</mo></mtd>
184 <mtd><mo>=
</mo><msub><mi>s
</mi>
185 <mrow><mtext>in
</mtext></mrow></msub><mo>(
</mo><mi>x
</mi><mo>'
</mo><mo>)
</mo><mo>*
</mo><msub><mi>s
</mi><mi>δ
</mi></msub><mo>(
</mo><mi>x
</mi><mo>-
</mo><mi>x
</mi><mo>'
</mo><mo>)
</mo></mtd></mtr>
188 <mtd><mo>=
</mo><mo>∫
</mo><msub><mi>s
</mi>
189 <mrow><mtext>in
</mtext></mrow></msub><mo>(
</mo><mi>x
</mi><mo>'
</mo><mo>)
</mo><msub><mi>s
</mi><mi>δ
</mi></msub><mo>(
</mo><mi>x
</mi><mo>-
</mo><mi>x
</mi><mo>'
</mo><mo>)
</mo><mtext>d
</mtext><mi>x
</mi><mo>'
</mo></mtd></mtr></mtable></math>
191 <p>Cases (
"manually
", with
<span class=
"docutils literal">matrix
</span> environment):
</p>
193 <math xmlns=
"http://www.w3.org/1998/Math/MathML" mode=
"display">
196 <mtd><mtext>sgn
</mtext><mo>(
</mo><mi>x
</mi><mo>)
</mo><mo>=
</mo><mfenced open=
"{" close=
"">
200 <mtd><mo>-
</mo><mn>1</mn></mtd>
201 <mtd><mi>x
</mi><mo><</mo><mn>0</mn></mtd></mtr>
203 <mtd><mn>1</mn></mtd>
204 <mtd><mi>x
</mi><mo>></mo><mn>0</mn></mtd></mtr></mtable></mrow></mfenced></mtd></mtr></mtable></math>
206 <p>Cases with the
<a class=
"reference external" href=
"ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf">AMSmath
</a> <span class=
"docutils literal">cases
</span> environment (not (yet) supported by
207 HTML writers with
<span class=
"docutils literal"><span class=
"pre">--math-output=MathML
</span></span>):
</p>
208 <div class=
"system-message">
209 <p class=
"system-message-title">System Message: ERROR/
3 (
<span class=
"docutils literal">functional/input/data/math.txt
</span>, line
107)
</p>
211 Environment not supported! Supported environment:
"matrix".
</p>
212 <pre class=
"literal-block">
213 \mathrm{sgn}(x) = \begin{cases}