next up previous contents index
Next: NCSolve[expr1==expr2,var] Up: Manipulating an expression Previous: NCCollectSymmetric[expr]   Contents   Index

NCTermsOfDegree[expr,aListOfVariables,indices]

Aliases: None
Description: $ NCTermsOfDegree[expr,aListOfVariables,indices]$ returns an expression such that each term is homogeneous of degree given by the $ indices$ in the variables of $ aListOfVariables$. For example, $ NCTermsOfDegree[x**y**x + x**x**y + x**x + x**w,\{x,y\},indices]$ returns $ x ** x ** y + x ** y ** x$ if $ indices = \{2,1\}$, return $ x**w$ if $ indices = \{1,0\}$, return $ x**x$ if $ indices=\{2,0\}$ and returns 0 otherwise. This is like Mathematica's Coefficient command, but for the noncommuting case. However, it actually gives the terms and not the coefficients of the terms.
Arguments: $ expr$ is an algebraic expression, $ aListOfVariables$ is a list of variables and indices is a list of positive integers which is the same length as $ aList$.
Comments / Limitations: Not available before NCAlgebra 1.0



NCAlgebra Project 2002-09-09