next up previous contents index
Next: NCStrongCollect[expr, aListOfVariables] Up: Manipulating an expression Previous: ExpandNonCommutativeMultiply[expr]   Contents   Index

NCCollect[expr, aListOfVariables]

Aliases: NCC
Description: $ NCCollect[expr,aListOfVariables]$ collects terms of expression $ expr$ according to the elements of $ aListOfVariables$ and attempts to combine them using a particular list of rules called $ rulesCollect$. NCCollect is weaker than NCStrongCollect in that first-order and second-order terms are not collected together. NCCollect uses NCDecompose, and then NCStrongCollect, and then NCCompose.
Arguments: $ expr$ is an algebraic expression. $ aListOfVariables$ is a list of variables.
Comments / Limitations: While $ NCCollect[expr,x]$ always returns mathematically correct expressions, it may not collect $ x$ from as many terms as it should. If $ expr$ has been expanded in the previous step, the problem does not arise. If not, the pattern match behind NCCollect may not get entirely inside of every factor where $ x$ appears.



NCAlgebra Project 2002-09-09