This site is supported by donations to The OEIS Foundation.

Template:Mo/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Mo. [<Edit> Template:Mo]

[⧼Purge⧽ Template:Mo/doc]

The {{mo}} (mathematical operator) mathematical formatting template formats a mathematical [binary] operator.

Usage

{{mo|format}}

or

{{mo||format}}

or

{{mo|mathematical [binary] operator}}

or

{{mo|mathematical [binary] operator|format}}

where mathematical [binary] operator defaults to invisible times,

and where format is among

Examples

Code Result Comment
{{mo}} @opsp@ (invisible times)
{{mo|htm}} @opsp@ (invisible times)
{{mo|tex}} @opsp@ (invisible times)
{{mo|mml}} <mo>⁢</mo> (invisible times)
{{mo|-}} @opsp@−@opsp@  
{{mo|-|htm}} @opsp@−@opsp@  
{{mo|sin}} @opsp@ Undefined symbol: sin @opsp@  
{{mo|-|tex}} @opsp@{\rm - }@opsp@ (Roman font-style; except for the reserved TeX character ^)
{{mo|sin|tex}} @opsp@{\rm {\color{red} \text{ Undefined symbol: sin } } }@opsp@ (Roman font-style; except for the reserved TeX character ^)
{{mo|-|mml}} <mo>−</mo>  
{{mo|sin|mml}} <mo> Undefined symbol: sin </mo>  

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|Mo/doc]] <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|Mo/doc]] <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>

See also

  • {{mi}} (mathematical [variable or constant] identifier)
  • {{mf}} (mathematical function)
  • {{mn}} (mathematical number)[1]

Notes

  1. As opposed to nominal number.