up previous next
NC.LW

The leading word (or term) of a non-zero polynomial in a non-commutative polynomial ring.
Syntax
          
NC.LW(F:LIST):LIST
NC.LT(F:LIST):LIST

          

Description
Please note: The function(s) explained on this page is/are using the ApCoCoAServer. You will have to start the ApCoCoAServer in order to use it/them.

Please set non-commutative polynomial ring (via the command Use) and word ordering (via the function NC.SetOrdering) before calling this function. The default word ordering is the length-lexicographic ordering ("LLEX"). For more information, please check the relevant commands and functions.

Example
USE QQ[x[1..2]];
F:= [[x[1]^2], [2x[1],x[2]], [3x[2],x[1]],[4x[2]^2]]; -- x[1]^2+2x[1]x[2]+3x[2]x[1]+4x[2]^2
NC.SetOrdering("LLEX");
NC.LW(F);

[x[1]^2]
-------------------------------
-- Done.
-------------------------------
NC.SetOrdering("LRLEX");
NC.LW(F);

[x[2]^2]
-------------------------------
-- Done.
-------------------------------
NC.SetOrdering("ELIM");
NC.LW(F);

[x[1]^2]
-------------------------------
-- Done.
-------------------------------
NC.SetOrdering("DEGRLEX");
NC.LT(F);

[x[1]^2]
-------------------------------


See Also