(Standard) degree of a polynomial over a free associative K-algebra.
Syntax
NC.Deg(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.
Before calling the function, please set ring environment alphabet X through the functions NC.SetX(X).
@param F: a polynomial in K. Each polynomial in K is represented as a LIST of LISTs, which are pairs of form [c, w] where c is in K and w is a word in X*. Unit in X* is empty word represented as an empty string "". 0 polynomial is represented as an empty list. For example, polynomial F:=xy-y+1 in K is represented as F:=[[1,"xy"], [-1, "y"], [1,""]].
@return: a positive integer which is (standard) degree F. If F=0, then return 0.