CommutatorExplicit

Description

CommutatorExplicit[exp] substitutes any Commutator and AntiCommutator in exp by their definitions.

See also:  Calc, DotSimplify.

Examples

DeclareNonCommutative[a, b, c, d]

Commutator[a, b]

CommutatorExplicit[%]

AntiCommutator[a - c, b - d]

CommutatorExplicit[%]

CommutatorExplicit[%%] // DotSimplify

UnDeclareNonCommutative[a, b, c, d]