Physics: functions\tr

\trCommand

Used for matrix trace notation in the short lowercase form, as in \tr A or \tr(A).

\tr(M)
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#

\trd<(,)><[,]><{,}>(a)optional math content

Argspec d<(,)><[,]><{,}> — one optional argument. Reading argspecs

In TeXForm#

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

Rewrite physics-only named functions to operatorname and expand their auto-sized arguments.

\asin \operatorname{asin}

Equivalent forms#

  • \trace Aexact

    PhysicsMappings maps \trace to the same parse method with id='tr', so both forms produce the same operator name and syntax.

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\trPositive · baselinePassFailPass
\tr (a)Positive · vary:d[0]PassFailPass
All 17 in Physics: functions