This site is supported by donations to The OEIS Foundation.

Template:Op/doc

From OeisWiki
Jump to: navigation, search

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

[⧼Purge⧽ Template:Op/doc]

The {{op}} mathematical formatting template typesets either unary or binary, "pure" i.e. with no limits, operators in either HTML+CSS or LaTeX.

Usage

The {{op}} template must be used within the {{math}} template.

Tests

The code

{{matrix|
''x'' {{op|+}} ''y'', ''x'' {{op|-}} ''y'', ''x'' {{op|+/-}} ''y'', ''x'' {{op|-/+}} ''y'', \\
''x'' {{op|x}} ''y'', ''x''{{op|sdot}}''y'', ''x'' {{op|div}} ''y'', ''x''{{op|/}}''y'', {{vec|x|b}} {{op|bdot}} {{vec|y|b}}, ''x''{{op|^}}''y'', \\
{{op|sin}} ''{{Gr|theta}}'', {{op|cos}} ''{{Gr|theta}}'', {{op|tan}} ''{{Gr|theta}}'', \\
{{op|csc}} ''{{Gr|theta}}'', {{op|sec}} ''{{Gr|theta}}'', {{op|cot}} ''{{Gr|theta}}'', \\
{{op|arcsin}} ''{{Gr|theta}}'', {{op|arccos}} ''{{Gr|theta}}'', {{op|arctan}} ''{{Gr|theta}}'', \\    
{{op|arccsc}} ''{{Gr|theta}}'', {{op|arcsec}} ''{{Gr|theta}}'', {{op|arccot}} ''{{Gr|theta}}'', \\
{{op|sinh}} ''{{Gr|theta}}'', {{op|cosh}} ''{{Gr|theta}}'', {{op|tanh}} ''{{Gr|theta}}'', \\
{{op|csch}} ''{{Gr|theta}}'', {{op|sech}} ''{{Gr|theta}}'', {{op|coth}} ''{{Gr|theta}}'', \\
{{op|arsinh}} ''{{Gr|theta}}'', {{op|arcosh}} ''{{Gr|theta}}'', {{op|artanh}} ''{{Gr|theta}}'', \\
{{op|arcsch}} ''{{Gr|theta}}'', {{op|arsech}} ''{{Gr|theta}}'', {{op|arcoth}} ''{{Gr|theta}}'', \\
{{op|lg}} ''x'', {{op|ln}} ''x'', {{op|log}} ''x'', {{op|exp}} ''x'', \\
{{op|arg}} ''x'', {{op|deg}} ''x'', {{op|dim}} ''x'', {{op|hom}} ''x'', {{op|ker}} ''x''
|raw}}

yields (@opsp@ is an annotation for operator spacing used by the {{math}} template)

x @opsp@+@opsp@ y, x @opsp@−@opsp@ y, x @opsp@±@opsp@ y, x @opsp@∓@opsp@ y,
x @opsp@×@opsp@ y, x ⋅  y, x @opsp@÷@opsp@ y, x / y, xy, x  ^  y,
sin@opsp@ θ, cos@opsp@ θ, tan@opsp@ θ,
csc@opsp@ θ, sec@opsp@ θ, cot@opsp@ θ,
arcsin@opsp@ θ, arccos@opsp@ θ, arctan@opsp@ θ,
arccsc@opsp@ θ, arcsec@opsp@ θ, arccot@opsp@ θ,
sinh@opsp@ θ, cosh@opsp@ θ, tanh@opsp@ θ,
csch@opsp@ θ, sech@opsp@ θ, coth@opsp@ θ,
arsinh@opsp@ θ, arcosh@opsp@ θ, artanh@opsp@ θ,
arcsch@opsp@ θ, arsech@opsp@ θ, arcoth@opsp@ θ,
lg@opsp@ x, ln@opsp@ x, log@opsp@ x, exp@opsp@ x,
arg@opsp@ x, deg@opsp@ x, dim@opsp@ x, hom@opsp@ x, ker@opsp@ x

Examples

Text style

The code

{{indent}}{{math|
{{matrix|
''x'' {{op|+}} ''y'', ''x'' {{op|-}} ''y'', ''x'' {{op|+/-}} ''y'', ''x'' {{op|-/+}} ''y'', \\
''x'' {{op|x}} ''y'', ''x''{{op|sdot}}''y'', ''x'' {{op|div}} ''y'', ''x''{{op|/}}''y'', {{vec|x|b}} {{op|bdot}} {{vec|y|b}}, ''x''{{op|^}}''y'', \\
{{op|sin}} ''{{Gr|theta}}'', {{op|cos}} ''{{Gr|theta}}'', {{op|tan}} ''{{Gr|theta}}'', \\
{{op|csc}} ''{{Gr|theta}}'', {{op|sec}} ''{{Gr|theta}}'', {{op|cot}} ''{{Gr|theta}}'', \\
{{op|arcsin}} ''{{Gr|theta}}'', {{op|arccos}} ''{{Gr|theta}}'', {{op|arctan}} ''{{Gr|theta}}'', \\    
{{op|arccsc}} ''{{Gr|theta}}'', {{op|arcsec}} ''{{Gr|theta}}'', {{op|arccot}} ''{{Gr|theta}}'', \\
{{op|sinh}} ''{{Gr|theta}}'', {{op|cosh}} ''{{Gr|theta}}'', {{op|tanh}} ''{{Gr|theta}}'', \\
{{op|csch}} ''{{Gr|theta}}'', {{op|sech}} ''{{Gr|theta}}'', {{op|coth}} ''{{Gr|theta}}'', \\
{{op|arsinh}} ''{{Gr|theta}}'', {{op|arcosh}} ''{{Gr|theta}}'', {{op|artanh}} ''{{Gr|theta}}'', \\
{{op|arcsch}} ''{{Gr|theta}}'', {{op|arsech}} ''{{Gr|theta}}'', {{op|arcoth}} ''{{Gr|theta}}'', \\
{{op|lg}} ''x'', {{op|ln}} ''x'', {{op|log}} ''x'', {{op|exp}} ''x'', \\
{{op|arg}} ''x'', {{op|deg}} ''x'', {{op|dim}} ''x'', {{op|hom}} ''x'', {{op|ker}} ''x''
|raw}}
|&}}

yields the text style HTML+CSS

      
x  +  y, x  −  y, x  ±  y, x  ∓  y,
x  ×  y, x ⋅  y, x  ÷  y, x / y, xy, x  ^  y,
sin  θ, cos  θ, tan  θ,
csc  θ, sec  θ, cot  θ,
arcsin  θ, arccos  θ, arctan  θ,
arccsc  θ, arcsec  θ, arccot  θ,
sinh  θ, cosh  θ, tanh  θ,
csch  θ, sech  θ, coth  θ,
arsinh  θ, arcosh  θ, artanh  θ,
arcsch  θ, arsech  θ, arcoth  θ,
lg  x, ln  x, log  x, exp  x,
arg  x, deg  x, dim  x, hom  x, ker  x

The code

{{indent}}{{math|
{{matrix|
''x'' {{op|+}} ''y'', ''x'' {{op|-}} ''y'', ''x'' {{op|+/-|tex}} ''y'', ''x'' {{op|-/+|tex}} ''y'', \\
''x'' {{op|x|tex}} ''y'', ''x''{{op|sdot|tex}}''y'', ''x'' {{op|div|tex}} ''y'', ''x''{{op|/|tex}}''y'', {{vec|x|b|tex}} {{op|bdot|tex}} {{vec|y|b|tex}}, ''x''{{op|^|tex}}''y'', \\
{{op|sin|tex}} ''{{Gr|theta|tex}}'', {{op|cos|tex}} ''{{Gr|theta|tex}}'', {{op|tan|tex}} ''{{Gr|theta|tex}}'', \\
{{op|csc|tex}} ''{{Gr|theta|tex}}'', {{op|sec|tex}} ''{{Gr|theta|tex}}'', {{op|cot|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arcsin|tex}} ''{{Gr|theta|tex}}'', {{op|arccos|tex}} ''{{Gr|theta|tex}}'', {{op|arctan|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arccsc|tex}} ''{{Gr|theta|tex}}'', {{op|arcsec|tex}} ''{{Gr|theta|tex}}'', {{op|arccot|tex}} ''{{Gr|theta|tex}}'', \\
{{op|sinh|tex}} ''{{Gr|theta|tex}}'', {{op|cosh|tex}} ''{{Gr|theta|tex}}'', {{op|tanh|tex}} ''{{Gr|theta|tex}}'', {\\
{{op|csch|tex}} ''{{Gr|theta|tex}}'', {{op|sech|tex}} ''{{Gr|theta|tex}}'', {{op|coth|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arsinh|tex}} ''{{Gr|theta|tex}}'', {{op|arcosh|tex}} ''{{Gr|theta|tex}}'', {{op|artanh|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arcsch|tex}} ''{{Gr|theta|tex}}'', {{op|arsech|tex}} ''{{Gr|theta|tex}}'', {{op|arcoth|tex}} ''{{Gr|theta|tex}}'', \\
{{op|lg|tex}} ''x'', {{op|ln|tex}} ''x'', {{op|log|tex}} ''x'', {{op|exp|tex}} ''x'', \\
{{op|arg|tex}} ''x'', {{op|deg|tex}} ''x'', {{op|dim|tex}} ''x'', {{op|hom|tex}} ''x'', {{op|ker|tex}} ''x''
|raw|tex}}     
|$}}

yields the text style LaTeX

     

Display style

The code

{{indent}}{{math|
{{matrix|
''x'' {{op|+}} ''y'', ''x'' {{op|-}} ''y'', ''x'' {{op|+/-}} ''y'', ''x'' {{op|-/+}} ''y'', \\
''x'' {{op|x}} ''y'', ''x''{{op|sdot}}''y'', ''x'' {{op|div}} ''y'', ''x''{{op|/}}''y'', {{vec|x|b}} {{op|bdot}} {{vec|y|b}}, ''x''{{op|^}}''y'', \\
{{op|sin}} ''{{Gr|theta}}'', {{op|cos}} ''{{Gr|theta}}'', {{op|tan}} ''{{Gr|theta}}'', \\
{{op|csc}} ''{{Gr|theta}}'', {{op|sec}} ''{{Gr|theta}}'', {{op|cot}} ''{{Gr|theta}}'', \\
{{op|arcsin}} ''{{Gr|theta}}'', {{op|arccos}} ''{{Gr|theta}}'', {{op|arctan}} ''{{Gr|theta}}'', \\    
{{op|arccsc}} ''{{Gr|theta}}'', {{op|arcsec}} ''{{Gr|theta}}'', {{op|arccot}} ''{{Gr|theta}}'', \\
{{op|sinh}} ''{{Gr|theta}}'', {{op|cosh}} ''{{Gr|theta}}'', {{op|tanh}} ''{{Gr|theta}}'', \\
{{op|csch}} ''{{Gr|theta}}'', {{op|sech}} ''{{Gr|theta}}'', {{op|coth}} ''{{Gr|theta}}'', \\
{{op|arsinh}} ''{{Gr|theta}}'', {{op|arcosh}} ''{{Gr|theta}}'', {{op|artanh}} ''{{Gr|theta}}'', \\
{{op|arcsch}} ''{{Gr|theta}}'', {{op|arsech}} ''{{Gr|theta}}'', {{op|arcoth}} ''{{Gr|theta}}'', \\
{{op|lg}} ''x'', {{op|ln}} ''x'', {{op|log}} ''x'', {{op|exp}} ''x'', \\
{{op|arg}} ''x'', {{op|deg}} ''x'', {{op|dim}} ''x'', {{op|hom}} ''x'', {{op|ker}} ''x''
|raw}}
|&&}}

yields the display style HTML+CSS

     
x + y, xy, x ± y, xy,
x × y, x ⋅  y, x ÷ y, x / y, xy, x  ^  y,
sin θ, cos θ, tan θ,
csc θ, sec θ, cot θ,
arcsin θ, arccos θ, arctan θ,
arccsc θ, arcsec θ, arccot θ,
sinh θ, cosh θ, tanh θ,
csch θ, sech θ, coth θ,
arsinh θ, arcosh θ, artanh θ,
arcsch θ, arsech θ, arcoth θ,
lg x, ln x, log x, exp x,
arg x, deg x, dim x, hom x, ker x

The code

{{indent}}{{math|
{{matrix|
''x'' {{op|+}} ''y'', ''x'' {{op|-}} ''y'', ''x'' {{op|+/-|tex}} ''y'', ''x'' {{op|-/+|tex}} ''y'', \\
''x'' {{op|x|tex}} ''y'', ''x''{{op|sdot|tex}}''y'', ''x'' {{op|div|tex}} ''y'', ''x''{{op|/|tex}}''y'', {{vec|x|b|tex}} {{op|bdot|tex}} {{vec|y|b|tex}}, ''x''{{op|^|tex}}''y'', \\
{{op|sin|tex}} ''{{Gr|theta|tex}}'', {{op|cos|tex}} ''{{Gr|theta|tex}}'', {{op|tan|tex}} ''{{Gr|theta|tex}}'', \\
{{op|csc|tex}} ''{{Gr|theta|tex}}'', {{op|sec|tex}} ''{{Gr|theta|tex}}'', {{op|cot|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arcsin|tex}} ''{{Gr|theta|tex}}'', {{op|arccos|tex}} ''{{Gr|theta|tex}}'', {{op|arctan|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arccsc|tex}} ''{{Gr|theta|tex}}'', {{op|arcsec|tex}} ''{{Gr|theta|tex}}'', {{op|arccot|tex}} ''{{Gr|theta|tex}}'', \\
{{op|sinh|tex}} ''{{Gr|theta|tex}}'', {{op|cosh|tex}} ''{{Gr|theta|tex}}'', {{op|tanh|tex}} ''{{Gr|theta|tex}}'', {\\
{{op|csch|tex}} ''{{Gr|theta|tex}}'', {{op|sech|tex}} ''{{Gr|theta|tex}}'', {{op|coth|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arsinh|tex}} ''{{Gr|theta|tex}}'', {{op|arcosh|tex}} ''{{Gr|theta|tex}}'', {{op|artanh|tex}} ''{{Gr|theta|tex}}'', \\
{{op|arcsch|tex}} ''{{Gr|theta|tex}}'', {{op|arsech|tex}} ''{{Gr|theta|tex}}'', {{op|arcoth|tex}} ''{{Gr|theta|tex}}'', \\
{{op|lg|tex}} ''x'', {{op|ln|tex}} ''x'', {{op|log|tex}} ''x'', {{op|exp|tex}} ''x'', \\
{{op|arg|tex}} ''x'', {{op|deg|tex}} ''x'', {{op|dim|tex}} ''x'', {{op|hom|tex}} ''x'', {{op|ker|tex}} ''x''
|raw|tex}}     
|$$}}

yields the display style LaTeX