next up previous contents index
Next: NCUnMonomial[expr] Up: Manipulating an expression Previous: NCForward[expr]   Contents   Index

NCMonomial[expr]

Aliases: None
Description: NCMonomail changes the look of an expression by replacing $ n$th integer powers of the NonCommutative variable $ x$, with the product of $ n$ copies of $ x$. For example, $ NCMonomial[ 2 x^2 + 5 x^4]$ evaluates to $ 2 x ** x + 5 x ** x ** x ** x$ and $ NCMonomial[(x^2) ** z ** x]$ evaluates to $ x ** x ** z ** x$.
Arguments: Any noncommutative expression.
Comments / Limitations: The program greatly eases the task of typing in polynomials. For example, instead of typing $ x = x ** x ** x ** x ** x ** x ** x ** x ** x ** x ** x ** x ** y ** x ** x$, one can type $ x=NCMono[(x^{12})**y**(x^2)]$. NCMono expands only integer exponents. This program will be (or has been, depending on the version of code which you have) superseded by NCMonomial and NCUnMonomial. NCMonomial implements the same functionality as NCMonomial and NCUnMonomial reverses the process. Caution: Mathematica treats $ x ** y^2$ as $ (x ** y)^2$ and so to have Mathematica acknowledge $ x ** y^2$ then input $ x ** (y^2)$ exactly. This has nothing to do with NCAlgebra or NCMonomial.



NCAlgebra Project 2002-09-09