up previous next
NCo.MRDeg

The standard degree of a polynomial in a finitely presented monoid ring.
Syntax
          
NCo.MRDeg(X:STRING, Ordering:STRING, Relations:LIST, F:LIST):INT

          

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"]]; -- F = a+5cc
NCo.MRDeg(X, Ordering, Relations, F); 
2
-------------------------------
NCo.MRAdd(X, "LLEX", Relations, F,[]);
[[5, "cc"], [1, "a"]]
-------------------------------
NCo.MRDeg(X, Ordering, Relations, []);
0
-------------------------------


See Also