This site is supported by donations to The OEIS Foundation.
Template:Prime/doc
From OeisWiki
The {{prime}} mathematical formatting template gives prime symbols (single prime ′ or double prime ′′ or triple prime ′′′ or quadruple prime ′′′′) in either HTML+CSS or LaTeX format.
Usage
You may use
- {{prime|type|format}}
where type (first argument) is from
- 0 (no prime symbol);
- 1 or s or single (default);
- 2 or d or double;
- 3 or t or triple;
- 4 or q or quadruple;
and where format (last argument) is from (case insensitive)
- htm: HTML+CSS (default);
- tex: LaTeX.
Tests
The code
: before {{math|''x''{{prime|0}}, ''x''{{prime}}, ''x''{{prime|2}}, ''x''{{prime|3}}, ''x''{{prime|4}}, ''f''{{sp|3}}{{prime|0}}(''x''), ''f''{{sp|3}}{{prime}}(''x''), ''f''{{sp|3}}{{prime|2}}(''x''), ''f''{{sp|3}}{{prime|3}}(''x''), ''f''{{sp|3}}{{prime|4}}(''x'')|&}} after
yields the text style HTML+CSS
- before
afterx, x′, x′′, x′′′, x′′′′, f (x), f ′(x), f ′′(x), f ′′′(x), f ′′′′(x)
The code
: before {{math|''x''{{prime|0|tex}}, ''x''{{prime|tex}}, ''x''{{prime|2|tex}}, ''x''{{prime|3|tex}}, ''x''{{prime|4|tex}}, ''f''{{sp|1|tex}}{{prime|0|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|2|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|3|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|4|tex}}(''x'')|$}} after
yields the text style LaTeX
- before after
The code
: {{math|''x''{{prime|0}}, ''x''{{prime}}, ''x''{{prime|2}}, ''x''{{prime|3}}, ''x''{{prime|4}}, ''f''{{sp|3}}{{prime|0}}(''x''), ''f''{{sp|3}}{{prime}}(''x''), ''f''{{sp|3}}{{prime|2}}(''x''), ''f''{{sp|3}}{{prime|3}}(''x''), ''f''{{sp|3}}{{prime|4}}(''x'') | tex = x, x^\prime, x^{\prime\prime}, x^{\prime\prime\prime}, x^{\prime\prime\prime\prime}, f(x), f^\prime(x), f^{\prime\prime}(x), f^{\prime\prime\prime}(x), f^{\prime\prime\prime\prime}(x)|&&}}
yields the display style HTML+CSS
-
x, x′, x′′, x′′′, x′′′′, f (x), f ′(x), f ′′(x), f ′′′(x), f ′′′′(x)
The code
: {{math|''x''{{prime|0|tex}}, ''x''{{prime|tex}}, ''x''{{prime|2|tex}}, ''x''{{prime|3|tex}}, ''x''{{prime|4|tex}}, ''f''{{sp|1|tex}}{{prime|0|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|2|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|3|tex}}(''x''), ''f''{{sp|1|tex}}{{prime|4|tex}}(''x'')|$$}}
yields the display style LaTeX
The code
: {{math|''x''{{prime|0}}, ''x''{{prime}}, ''x''{{prime|2}}, ''x''{{prime|3}}, ''x''{{prime|4}}, ''f''{{sp|3}}{{prime|0}}(''x''), ''f''{{sp|3}}{{prime}}(''x''), ''f''{{sp|3}}{{prime|2}}(''x''), ''f''{{sp|3}}{{prime|3}}(''x''), ''f''{{sp|3}}{{prime|4}}(''x'') | tex = x, x^\prime, x^{\prime\prime}, x^{\prime\prime\prime}, x^{\prime\prime\prime\prime, f(x), f^\prime(x), f^{\prime\prime}(x), f^{\prime\prime\prime}(x), f^{\prime\prime\prime\prime(x)|$$}}
yields the display style LaTeX
Examples
The code
(...) then {{math| ''J''{{supsub|{{sp|2}}{{sub|<big>{{prime}}</big>}}|0}}(''z''), ''J''{{supsub|{{sp|2}}{{sub|<big>{{prime|2}}</big>}}|0}}(''z''), ''J''{{supsub|{{sp|3}}{{sub|<big>{{prime|3}}</big>}}|0}}(''z''), ''J''{{supsub|{{sp|3}}{{sub|<big>{{prime|4}}</big>}}|0}}(''z'') | title = ''J''{{supsub|{{sp|1|tex}}{{prime|tex}}|0|tex}}(''z''),\, ''J''{{supsub|{{sp|1|tex}}{{prime|2|tex}}|0|tex}}(''z''),\, ''J''{{supsub|{{sp|1|tex}}{{prime|3|tex}}|0|tex}}(''z''),\, ''J''{{supsub|{{sp|1|tex}}{{prime|4|tex}}|0|tex}}(''z'') |&}} and (...)yields the text style HTML+CSS: (...) then
J ′ 0(z), J ′′ 0(z), J ′′′ 0(z), J ′′′′ 0(z) |
The code
(...) then {{math| ''J''{{supsub|{{sp|1|tex}}{{prime|tex}}|0|tex}}(''z''),\, ''J''{{supsub|{{sp|1|tex}}{{prime|2|tex}}|0|tex}}(''z''),\, ''J''{{supsub|{{sp|1|tex}}{{prime|3|tex}}|0|tex}}(''z''),\, ''J''{{supsub|{{sp|1|tex}}{{prime|4|tex}}|0|tex}}(''z'') |$}} and (...)
yields the text style LaTeX: (...) then and (...)
The code
{{indent}}{{math| {{vector| ''x''{{prime}} \\ ''y''{{prime}} }}<!-- --> {{=}} <!-- -->{{matrix| cos ''{{Gr|theta}}'' && {{op|-}} sin ''{{Gr|theta}}'' \\ sin ''{{Gr|theta}}'' && cos ''{{Gr|theta}}'' }}<!-- --> {{vector| ''x'' \\ ''y'' }} |&&}}
yields the display style HTML+CSS
|
The code
{{indent}}{{math| {{vector| ''x''{{prime|tex}} \\ ''y''{{prime|tex}} |tex}}<!-- --> {{=}} <!-- -->{{matrix| \cos ''{{Gr|theta|tex}}'' && {{op|-}} \sin ''{{Gr|theta|tex}}'' \\ \sin ''{{Gr|theta|tex}}'' && \cos ''{{Gr|theta|tex}}'' |tex}}<!-- -->{{vector| ''x'' \\ ''y'' |tex}} |$$}}
yields the display style LaTeX