This site is supported by donations to The OEIS Foundation.

Template:Integral/nicer/int/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Integral/nicer/int. [<Edit> Template:Integral/nicer/int]

[⧼Purge⧽ Template:Integral/nicer/int/doc]

alt = This template is under construction...
This template is under construction.            

Please do not use this unfinished and/or still unreliable template.            



The following code (which produces nicer integral symbols) requires

font-family: 'Lucida Sans Unicode';

which we cannot rely on being installed on the user's computer/tablet/smartphone...

(Firefox and Google Chrome and MS Edge: good results! Green tickY)
(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 
1
0
 x 3dx
and 
1
0
x 3dx
after
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

1
0
 x 3dx
and
1
0
x 3dx

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 
Γ(z) =
0
 e  −  t  t  z  − 1dt
after
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) =
0
 e  −  t  tz  − 1dt

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 
F =
2-ball
2-ball
dF, G =
3-ball
3-ball
dG, H =
4-ball
4-ball
dH
after
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 =
2-ball
2-ball
dF, G =
3-ball
3-ball
dG, H =
4-ball
4-ball
dH

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 
H =
n-ball
n-ball
dH
after
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 =
n-ball
n-ball
dH

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