/* A:matrix, V:variables, W:weight, FILENAME:file name */ def gettotaldegree(A,V0,W0){ dp_ord(0)$ N0=length(V0)$ N=size(A)[0]$ PROD=1$ for(I=0;IROW[I]) ROW[I]=DEG$ if(DEG>COLM[J]) COLM[J]=DEG$ } } ROW0=0$ COLM0=0$ for(I=0;IY) Y=T$ if(A[I][J]!=0) Z++$ } } print("Z",2)$ print(Z)$ print("Y",2)$ print(Y)$ for(I=0;I