This site is supported by donations to The OEIS Foundation.
Template:Integral/nicer/int
[⧼Purge⧽ Template:Integral/nicer/int]
(Firefox and Google Chrome and MS Edge: good results!
(Not the fault of the {{math}} template: MS Edge chops LaTeX PNG's, whether or not we use the {{math}} template! (See #Tests.)
Helper template used by the {{integral/nicer}} template to implement the int
(simple integral) option, which is also used to implement the iiiint
(quadruple integral), and idotsint
(multiple integral) options (since font-family: 'Lucida Sans Unicode';
does not support neither the quadruple integral symbol, nor the multiple integral symbol).
Usage
- {{integral/nicer/int|from|to|integrand}}
or
- {{integral/nicer/int|from|to|integrand|format}}
or
- {{integral/nicer/int|from|to}} integrand
or
- {{integral/nicer/int|from|to|format}} integrand
where format is among:
- htm: text style HTML+CSS (default);
- tex: text style LaTeX;
- HTM: display style HTML+CSS;
- TEX: display style LaTeX.
Examples
The code
: {{repeat|2|{{repeat|5|yadda{{nbsp}}}}{{nl}}}}before {{math|{{integral/nicer/int|0|1|''x''{{^|3}}{{sp|3}}{{d|''x''}}}}|&}} and {{math|{{integral/nicer/int|0|1}} ''x''{{^|3}}{{sp|3}}{{d|''x''}}|&}} after{{repeat|2|{{nl}}{{repeat|5|yadda{{nbsp}}}}}}
yields the text style HTML+CSS
- yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
before
and
x 3 d x∫ 1 0
after
x 3 d x∫ 1 0
yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
The code
: {{repeat|2|{{repeat|5|yadda{{nbsp}}}}{{nl}}}}before {{math|\int_{0}^{1} x^3 dx|$}} after{{repeat|2|{{nl}}{{repeat|5|yadda{{nbsp}}}}}}
yields the text style LaTeX
- yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
before after
yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
The code
: {{math|{{integral/nicer/int|0|1|''x''{{^|3}}{{sp|3}}{{d|''x''}}|HTM}}|&&}} and {{math|{{integral/nicer/int|0|1|HTM}} ''x''{{^|3}}{{sp|3}}{{d|''x''}}|&&}}
yields the display style HTML+CSS
- and
x 3 d x∫ 1 0
x 3 d x∫ 1 0
The code
: {{math|\int_{0}^{1} x^3 dx|$$}}
yields the display style LaTeX
The code
: {{repeat|2|{{repeat|5|yadda{{nbsp}}}}{{nl}}}}before {{math|{{Gr|Gamma}}(''z'') {{=}} <!-- -->{{integral/nicer/int|0|infty|''e''{{^|{{op|-}}{{sp|1}}''t''}}{{sp|2}}''t''{{sp|2}}{{^|''z''{{sp|1}}{{op|-}}1}}{{sp|3}}{{d|''t''}}}}|&}} after{{repeat|2|{{nl}}{{repeat|5|yadda{{nbsp}}}}}}
yields the text style HTML+CSS
- yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
before
afterΓ(z) =
e − t t z − 1 d t∫ ∞ 0
yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
The code
: {{repeat|2|{{repeat|5|yadda{{nbsp}}}}{{nl}}}}before {{math|\Gamma(z) {{=}} \int_{0}^{\infty} e^{-t} t^{z-1} dt|$}} after{{repeat|2|{{nl}}{{repeat|5|yadda{{nbsp}}}}}}
yields the text style LaTeX
- yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
before after
yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
The code
: {{math|{{Gr|Gamma}}(''z'') {{=}} <!-- -->{{integral/nicer/int|0|infty|''e''{{^|{{op|-}}{{sp|1}}''t''}}{{sp|2}}''t''{{sp|1}}{{^|''z''{{sp|1}}{{op|-}}1}}{{sp|3}}{{d|''t''}}|HTM}}|&&}}
yields the display style HTML+CSS
Γ(z) =
e − t t z − 1 d t∫ ∞ 0
The code
: {{math|\Gamma(z) {{=}} \int_{0}^{\infty} e^{-t} t^{z-1} dt|$$}}
yields the display style style LaTeX
\iint
and \iiint
and \iiiint
The code
: {{repeat|2|{{repeat|10|yadda{{nbsp}}}}{{nl}}}}<!-- -->before {{math|''F'' {{=}} {{integral/nicer|iint|2-ball| |''dF''}},{{sp|quad}}''G'' {{=}} {{integral/nicer|iiint|3-ball| |''dG''}},{{sp|quad}}''H'' {{=}} {{integral/nicer|iiiint|4-ball| |''dH''}}|&}} after<!-- -->{{repeat|2|{{nl}}{{repeat|10|yadda{{nbsp}}}}}}
yields the text style HTML+CSS
- yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
before
afterF =
dF, G =∬ 2-ball
dG, H =∭ 3-ball ∫ ∫ ∫
dH∫ 4-ball
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
The code
: {{repeat|2|{{repeat|10|yadda{{nbsp}}}}{{nl}}}}<!-- -->before {{math|''F'' {{=}} {{integral/nicer|iint|2\text{-ball}| |''dF''|tex}},\quad ''G'' {{=}} {{integral/nicer|iiint|3\text{-ball}| |''dG''|tex}},\quad ''H'' {{=}} {{integral/nicer|iiiint|4\text{-ball}| |''dH''|tex}}|$}} after<!-- -->{{repeat|2|{{nl}}{{repeat|10|yadda{{nbsp}}}}}}
yields the text style LaTeX
- yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
before after
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
The code
: {{math|''F'' {{=}} {{integral/nicer|iint|2-ball||HTM}} {{d|''F''}},{{sp|quad}}''G'' {{=}} {{integral/nicer|iiint|3-ball||HTM}} {{d|''G''}},{{sp|quad}}''H'' {{=}} {{integral/nicer|iiiint|4-ball||HTM}} {{d|''H''}}|&&}}
yields the display style HTML+CSS
F =
d F, G =∬ 2-ball
d G, H =∭ 3-ball ∫ ∫ ∫
d H∫ 4-ball
The code
: {{math|''F'' {{=}} {{integral/nicer|iint|2\text{-ball}||TEX}} {{d|''F''|tex}},\quad ''G'' {{=}} {{integral/nicer|iiint|3\text{-ball}||TEX}} {{d|''G''|tex}},\quad ''H'' {{=}} {{integral/nicer|iiiint|4\text{-ball}||TEX}} {{d|''H''|tex}}|$$}}
yields the display style LaTeX
\idotsint
The code
: {{repeat|2|{{repeat|5|yadda{{nbsp}}}}{{nl}}}}before {{math|''H'' {{=}} {{integral/nicer|idotsint|''n''-ball}} {{d|''H''}}|&}} after{{repeat|2|{{nl}}{{repeat|5|yadda{{nbsp}}}}}}
yields the text style HTML+CSS
- yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
before
afterH =
⋯∫
d H∫ n-ball
yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
The code
: {{repeat|2|{{repeat|5|yadda{{nbsp}}}}{{nl}}}}before {{math|''H'' {{=}} {{integral/nicer|idotsint|''n''\text{-ball}||tex}} {{d|''H''|tex}}|$}} after{{repeat|2|{{nl}}{{repeat|5|yadda{{nbsp}}}}}}
yields the text style LaTeX
- yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
before after
yadda yadda yadda yadda yadda
yadda yadda yadda yadda yadda
The code
: {{math|''H'' {{=}} {{integral/nicer|idotsint|''n''-ball||HTM}} {{d|''H''}}|&&}}
yields the display style HTML+CSS
H =
⋯∫
d H∫ n-ball
The code
: {{math|''H'' {{=}} {{integral/nicer|idotsint|''n''\text{-ball}||TEX}} {{d|''H''|tex}}|$$}}
yields the display style LaTeX
Tests
The code
: <math>\int_{0}^{1} x^3 dx</math> and {{math|\int_{0}^{1} x^3 dx|$$}}
yields the display style LaTeX (Not the fault of the {{math}} template: MS Edge chops LaTeX PNG's, whether or not we use the {{math}} template!)
- and
The code
: <math>\Gamma(z) = \int_{0}^{\infty} e^{-t} t^{z-1} dt</math> and {{math|\Gamma(z) {{=}} \int_{0}^{\infty} e^{-t} t^{z-1} dt|$$}}
yields the display style LaTeX (Not the fault of the {{math}} template: MS Edge chops LaTeX PNG's, whether or not we use the {{math}} template!)
- and