This site is supported by donations to The OEIS Foundation.
Template:Op
From OeisWiki
The following documentation is located at Template:Op/doc. [<Edit> Template:Op/doc]
[⧼Purge⧽ Template:Op]
[⧼Purge⧽ Template:Op]
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)
|
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
|
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
|
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