This site is supported by donations to The OEIS Foundation.

Template:Mn

From OeisWiki
Jump to: navigation, search

The {{mn}} (mathematical number) mathematical formatting template formats a mathematical number.[1]

Usage

{{mn|mathematical number}}

or

{{mn|mathematical number|format}}

where format is among

Examples

Code Result Comment
{{mn|105}} 105 (left as is)
{{mn|105|htm}} 105 (left as is)
{{mn|105|tex}} 105 (left as is)
{{mn|105|mml}} <mn>105</mn>  

HTML+CSS examples

The code

: {{math|{{mi|x|htm}}{{^|{{mn|2|htm}}}}{{mo|+|htm}}{{mi|y|htm}}{{^|{{mn|2|htm}}}}{{mo|{{=}}|htm}}{{mi|r|htm}}{{^|{{mn|2|htm}}}}|&}}

yields

x 2 + y 2 Undefined symbol: = r 2

while the code

: {{math|{{mi|x|htm}}{{^|{{mn|2|htm}}}}{{mo|+|htm}}{{mi|y|htm}}{{^|{{mn|2|htm}}}}{{mo|{{=}}|htm}}{{mi|r|htm}}{{^|{{mn|2|htm}}}}|&&}}

yields

x 2+y 2 Undefined symbol: = r 2

TeX examples

The code

: {{math|{{mi|x|tex}}{{^|{{mn|2|tex}}|tex}}{{mo|+|tex}}{{mi|y|tex}}{{^|{{mn|2|tex}}|tex}}{{mo|{{=}}|tex}}{{mi|r|tex}}{{^|{{mn|2|tex}}|tex}}|$}}

yields

while the code

: {{math|{{mi|x|tex}}{{^|{{mn|2|tex}}|tex}}{{mo|+|tex}}{{mi|y|tex}}{{^|{{mn|2|tex}}|tex}}{{mo|{{=}}|tex}}{{mi|r|tex}}{{^|{{mn|2|tex}}|tex}}|$$}}

yields

MathML examples

The code

{{math|{{mi|x|mml}}{{mo|^|mml}}{{mn|2|mml}}{{mo|+|mml}}{{mi|y|mml}}{{mo|^|mml}}{{mn|2|mml}}{{mo|{{=}}|mml}}{{mi|r|mml}}{{mo|^|mml}}{{mn|2|mml}}|mml &}}

yields

[[Category:Pages using the math template without the tex argument|Mn]] <span class="math, textstyle" style="display: inline-block; margin: 0 0 -0.75ex 0; padding: 0; white-space: nowrap; position: relative; vertical-align: -0.1ex; font-size: 1.15em; font-family: 'Computer Modern', STIXGeneral, 'Times New Roman';" title="vertical-align: baseline; No LaTeX code provided."><span style="display: inline-block; margin: 0; padding: 0; position: relative; vertical-align: -0.6ex;"><table style="display: inline-table; position: relative; vertical-align: baseline; margin: 0; padding: 0; border-width: 0; border-spacing: 0; background: transparent;"><tr><td style="margin: 0; padding: 0;"><mi>x</mi><mo>^</mo><mn>2</mn><mo>+</mo><mi>y</mi><mo>^</mo><mn>2</mn><mo>=</mo><mi>r</mi><mo>^</mo><mn>2</mn></td></tr></table></span></span>

while the code

{{math|{{mi|x|mml}}{{mo|^|mml}}{{mn|2|mml}}{{mo|+|mml}}{{mi|y|mml}}{{mo|^|mml}}{{mn|2|mml}}{{mo|{{=}}|mml}}{{mi|r|mml}}{{mo|^|mml}}{{mn|2|mml}}|mml &&}}

yields

[[Category:Pages using the math template without the tex argument|Mn]] <span class="math, textstyle" style="display: inline-block; margin: 0 0 -0.75ex 0; padding: 0; white-space: nowrap; position: relative; vertical-align: -0.1ex; font-size: 1.15em; font-family: 'Computer Modern', STIXGeneral, 'Times New Roman';" title="vertical-align: baseline; No LaTeX code provided."><span style="display: inline-block; margin: 0; padding: 0; position: relative; vertical-align: -0.6ex;"><table style="display: inline-table; position: relative; vertical-align: baseline; margin: 0; padding: 0; border-width: 0; border-spacing: 0; background: transparent;"><tr><td style="margin: 0; padding: 0;"><mi>x</mi><mo>^</mo><mn>2</mn><mo>+</mo><mi>y</mi><mo>^</mo><mn>2</mn><mo>=</mo><mi>r</mi><mo>^</mo><mn>2</mn></td></tr></table></span></span>

Code

<noinclude>{{Documentation}}</noinclude><includeonly><!--

  Formatting for a mathematical number (as opposed to a nominal number).

-->{{#switch: {{#if: {{{2|}}} |{{{2}}}|htm}}
| htm | HTM = {{{1|}}}   
| tex | TEX = {{{1|}}}
| mml | MML = 
<mn>{{{1|}}}</mn> 
}}</includeonly>

See also

  • {{mi}} (mathematical [variable or constant] identifier)
  • {{mo}} (mathematical operator)

Notes

  1. As opposed to nominal number.