=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/lib/weight,v retrieving revision 1.3 retrieving revision 1.8 diff -u -p -r1.3 -r1.8 --- OpenXM_contrib2/asir2000/lib/weight 2003/11/05 08:26:57 1.3 +++ OpenXM_contrib2/asir2000/lib/weight 2003/11/20 10:41:12 1.8 @@ -1,560 +1,555 @@ -load("solve")$ -load("gr")$ - -def nonposdegchk(Res){ - - for(I=0;Inmono(B) ? 1:0))$ -} - -def junban2(A,B){ - - for(I=0;IB[I]) - return -1$ - } - - return 0$ -} - -def roundret(V){ - - VN=length(V)$ - RET0=newvect(VN,V)$ - - for(I=1;I<1000;I++){ - RET1=I*RET0$ - for(J=0;JB ? -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