=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/engine/nd.c,v retrieving revision 1.99 retrieving revision 1.101 diff -u -p -r1.99 -r1.101 --- OpenXM_contrib2/asir2000/engine/nd.c 2004/09/14 07:23:34 1.99 +++ OpenXM_contrib2/asir2000/engine/nd.c 2004/09/14 10:00:26 1.101 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM_contrib2/asir2000/engine/nd.c,v 1.98 2004/08/18 00:17:02 noro Exp $ */ +/* $OpenXM: OpenXM_contrib2/asir2000/engine/nd.c,v 1.100 2004/09/14 09:25:48 noro Exp $ */ #include "nd.h" @@ -3214,6 +3214,7 @@ ND nd_quo(ND p,ND d) divq(HCQ(p),HCQ(d),&q); chsgnq(q,&CQ(mq)); t = nd_mul_nm_trunc(mq,d,HDL(d)); + CQ(mq) = q; p = nd_add(0,p,t); } NEXT(mq) = 0; @@ -4725,6 +4726,8 @@ void nd_det(MAT f,P *rp) } d = mjj; } + if ( sgn < 0 ) + nd_mul_c_q(d,mone); dv = ndtondv(0,d); *rp = ndvtop(0,CO,fv,dv); }