up previous next
NCo.MRLW

The leading word (or term) of a polynomial in a finitely presented monoid ring.
Syntax
          
NCo.MRLW(X:STRING, Ordering:STRING, Relations:LIST, F:LIST):STRING
NCo.MRLT(X:STRING, Ordering:STRING, Relations:LIST, F:LIST):STRING

          

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 coefficient field via the function NCo.SetFp (or NCo.UnsetFp) before calling this function. The default coefficient field is the field of rational numbers, i.e. RAT in CoCoAL. For more information, please check the relevant functions.

Example
X := "abc"; 
Ordering := "LLEX"; 
Relations := [["aa",""], ["bb",""], ["ab","c"], ["ac", "b"], ["cb", "a"]]; 
F := [[1,"a"],[2,"abc"],[3,"cc"]]; 
NCo.MRLW(X, Ordering, Relations, F);
cc
-------------------------------
NCo.MRLW(X, Ordering, Relations, []);


See Also