Physics: quantities\commutator

\commutatorCommand

Used in quantum mechanics and algebra to denote the commutator [A,B] = AB - BA of two operators or elements

\commutator{A}{B}
Available in
physics
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
physicsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\commutators*starm{}{a}math contentm{b}math content

Argspec s m{} m — one optional and two mandatory arguments. Reading argspecs

Examples#

\commutator*{A}{B}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to#

\commutator{A}{B} \left[A,B\right]

With star: [A,B] without \left/\right. With optional \big, \Big, \bigg, or \Bigg prefix: uses corresponding \bigl[...\bigr] sizing.

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\commutator{a}{b}Positive · baselinePassFailPass
\commutator*{a}{b}Positive · vary:s[0]PassFailPass
\commutator{a}bPositive · bare[2]PassFailPass
All 28 in Physics: quantities