Template:Intmath/testcases



Note': the ' code is tweaked and/or optimized for use inside the ' and ' templates.''

In IE, except for, all the integrals seem to render in the beautiful font 'Lucida Sans Unicode', but in Firefox we get this ugly font (it is passable for text style, but would be really ugly in display style)! In which [ugly] font do the integral symbols, other than, render? Also, in which font does  render? &mdash; TentaclesTalk or ✉ Tentacles 17:50, 22 March 2016 (UTC)

No math
Compare vertical alignment and obliqueness of [rotated] int with other [italic] integral symbols:


 * &#x200A;&#x200A;



Gamma function (non-italic int as default)


 * Sandbox: Γ(z) = e−t&#x200A;t&#x200A;z&#x200A;−&#x200A;1dt    (With the math template, the limits have a much better alignment with the integral symbol.)
 * Current: Γ(z) = $∞ 0$ e−t&#x200A;t&#x200A;z&#x200A;−&#x200A;1dt



Gamma function


 * Sandbox: Γ(z) = e−t&#x200A;t&#x200A;z − 1dt    (With the math template, the limits have a much better alignment with the integral symbol.)
 * Current: Γ(z) = $∞ 0$ e−t&#x200A;t&#x200A;z&#x200A;−&#x200A;1dt



Line integral


 * Sandbox: F(x) ∙ dx = − F(x) ∙ dx
 * Current: $∫ ∞ 0$ F(x) ∙ dx = −$∫ ∞ 0$ F(x) ∙ dx



Maxwell's equations

Sandbox:


 * Gauss's law E ∙ dS = $∲ C$ ρ dV
 * Gauss's law for magnetism B ∙ dS = 0
 * Maxwell–Faraday equation E ∙ d &#x2113; = − $∳ C$ ∙ dS
 * Ampère's circuital law B ∙ d &#x2113; =  (&#x200A;μ0J + $∲ C$$∳ C$) ∙ dS

Current:


 * Gauss's law $1⁄ε_{0}$ E ∙ dS = $∂B⁄∂t$$1⁄c^{2}$ ρ dV
 * Gauss's law for magnetism $∂E⁄∂t$ B ∙ dS = 0
 * Maxwell–Faraday equation $∯ ∂&Omega;$ E ∙ d &#x2113; = −$1⁄ε_{0}$ $∭ &Omega;$ ∙ dS
 * Ampère's circuital law $∯ ∂&Omega;$ B ∙ d &#x2113; = $∮ ∂&Sigma;$ (&#x200A;μ0J + $∬ &Sigma;$$∂B⁄∂t$) ∙ dS



math
Compare vertical alignment and obliqueness of [rotated] int with other [italic] integral symbols:





Gamma function (non-italic int as default)


 * Sandbox: $&#x200A;&#x200A;$
 * Current: $&amp;#x200A;&amp;#x200A;$



Gamma function


 * Sandbox: $Γ(z) = e^{−t}&#x200A;t&#x200A;^{z&#x200A;−&#x200A;1}dt$
 * Current: $Γ(z) = ∞ 0 e^{−t}&#x200A;t&#x200A;^{z&#x200A;−&#x200A;1}dt$



Line integral


 * Sandbox: $Γ(z) = ∞ 0 e^{−t}&amp;#x200A;t&amp;#x200A;^{z&amp;#x200A;−&amp;#x200A;1}dt$
 * Current: $Γ(z) = e^{−t}&#x200A;t&#x200A;^{z&#x200A;−&#x200A;1}dt$



Maxwell's equations

Sandbox:


 * Gauss's law $Γ(z) = ∫ ∞ 0 e^{−t}&#x200A;t&#x200A;^{z&#x2009;−&#x2009;1}dt$
 * Gauss's law for magnetism $Γ(z) = ∫ ∞ 0 e^{−t}&amp;#x200A;t&amp;#x200A;^{z&amp;#x200A;−&amp;#x200A;1}dt$
 * Maxwell–Faraday equation $F(x) ∙ dx = − F(x) ∙ dx$
 * Ampère's circuital law $∲ C F(x) ∙ dx = −∳  C  F(x) ∙ dx$

Current:
 * Gauss's law $∲ C F(x) ∙ dx = −∳  C  F(x) ∙ dx$
 * Gauss's law for magnetism $E ∙ dS = 1⁄ε_{0} ρ dV$
 * Maxwell–Faraday equation $B ∙ dS = 0$
 * Ampère's circuital law $E ∙ d &#x2113; = − ∂B⁄∂t ∙ dS$



math
Sandbox: Line spacing is undisturbed.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Gauss's Law: $B ∙ d &#x2113; = (&#x200A;μ_{0}J + 1⁄c^{2}∂E⁄∂t) ∙ dS$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. $∯ ∂&Omega; E ∙ dS = 1⁄ε_{0}∭  &Omega;  ρ dV$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Current: Messes up the line spacing.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Gauss's Law: $∯ ∂&Omega; B ∙ dS = 0$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. $∮ ∂&Sigma; E ∙ d &#x2113; = −∬  &Sigma;  ∂B⁄∂t ∙ dS$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

bigmath
Compare vertical alignment and obliqueness of [rotated] int with other [italic] integral symbols:





Gamma function

LaTeX:

The Gamma function is defined as


 * $$\Gamma(z) = \int_0^\infty e^{-t} t^{z-1} \, dt.$$

Sandbox:

The Gamma function is defined as



Current:

The Gamma function is defined as





Maxwell's equations

LaTeX:

Gauss's law:



Gauss's law for magnetism:



Maxwell–Faraday equation:


 * $$\oint_{\partial \Sigma} \mathbf{E} \cdot d\boldsymbol{\ell} = - \iint_{\Sigma} \frac{\partial \mathbf{B}}{\partial t} \cdot d\mathbf{S} $$

Ampère's circuital law:


 * $$\oint_{\partial \Sigma} \mathbf{B} \cdot d\boldsymbol{\ell} = \iint_{\Sigma} \left( \mu_0 \mathbf{J} + \frac{1}{c^2} \frac{\partial \mathbf{E}}{\partial t} \right) \cdot d\mathbf{S} $$

Sandbox:

Gauss's law:



Gauss's law for magnetism:



Maxwell–Faraday equation:



Ampère's circuital law:



Current: Gauss's law:



Gauss's law for magnetism:



Maxwell–Faraday equation:



Ampère's circuital law:











\iiiint and \idotsint
LaTeX:

yields


 * $$H = \iiiint_{\rm 4\mbox{-}ball} dH$$

yields


 * $$H = \idotsint_{n{\rm \mbox{-}ball}} dH$$

yields


 * $$H = \int \cdots \int_{n{\rm \mbox{-}ball}} dH$$

yields (the better spaced)


 * $$H = \int \!\cdots\! \int_{n{\rm \mbox{-}ball}} dH$$

Sandbox:

yields the HTML text style $∮ ∂&Sigma; B ∙ d &#x2113; = ∬  &Sigma;  (&#x200A;μ_{0}J + 1⁄c^{2}∂E⁄∂t) ∙ dS$

yields the HTML text style $∯ ∂&Omega; E ∙ dS = 1⁄ε_{0}∭  &Omega;  ρ dV$

yields the HTML display style



yields the HTML display style



Quotient of integrals
LaTeX:

yields
 * $$\frac{ \int_0^\infty x^{2n} e^{-a x^2}\,dx }{ \int_0^\infty x^{2(n-1)} e^{-a x^2}\,dx } = \frac{2n-1}{2a}$$

Sandbox (without the  [fourth parameter] option):



yields (bigmath should have )



Sandbox (with the  [fourth parameter] option):



yields (bigmath should have )



Current:



yields



Sandbox (without the  [fourth parameter] option):



yields (bigmath should have )



Sandbox (with the  [fourth parameter] option):



yields (bigmath should have )