=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/lib/weight,v retrieving revision 1.2 retrieving revision 1.9 diff -u -p -r1.2 -r1.9 --- OpenXM_contrib2/asir2000/lib/weight 2003/10/17 14:36:25 1.2 +++ OpenXM_contrib2/asir2000/lib/weight 2003/11/21 08:07:16 1.9 @@ -1,244 +1,571 @@ -load("solve")$ - -def nonposdegchk(Res){ - - for(I=0;IB[I]) - return -1$ - } - - return 0$ -} - -def weight(PolyList,Vars){ - - dp_ord(2)$ - - PolyListNum=length(PolyList)$ - - ExpMat=[]$ - for(I=0;IB ? -1:0))$ +} + +def worder(A,B){ + return (A[0]B[0] ? -1:0))$ +} + +def wsort(A,B,C){ + + D=newvect(length(B))$ + for(I=0;I