DeclareNonCommutative

Description

DeclareNonCommutative[a, b, ...] declares a,b, ... to be non-commutative, i.e., DataType[a,b, ..., NonCommutative] is set to True.

See also:  DataType, UnDeclareNonCommutative.

Examples

DeclareNonCommutative[x]

As a side effect of DeclareNonCommutative x is declared to be of data type NonCommutative.

DataType[x, NonCommutative]

DeclareNonCommutative[y, z]

DataType[a, x, y, z, NonCommutative]

UnDeclareNonCommutative[x, y, z]

DataType[a, x, y, z, NonCommutative]