=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/lib/fff,v retrieving revision 1.2 retrieving revision 1.5 diff -u -p -r1.2 -r1.5 --- OpenXM_contrib2/asir2000/lib/fff 2000/08/21 08:31:41 1.2 +++ OpenXM_contrib2/asir2000/lib/fff 2001/05/09 01:41:42 1.5 @@ -23,7 +23,7 @@ * shall be made on your publication or presentation in any form of the * results obtained by use of the SOFTWARE. * (4) In the event that you modify the SOFTWARE, you shall notify FLL by - * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification + * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification * for such modification or the source code of the modified part of the * SOFTWARE. * @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/lib/fff,v 1.1.1.1 1999/12/03 07:39:11 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/lib/fff,v 1.4 2001/03/08 07:49:13 noro Exp $ */ /* fff : Univariate factorizer over a finite field. @@ -112,6 +112,7 @@ def sqfr_ff(F) F2 = ugcd(F,F1); /* FLAT = H/gcd(H,H') : square free part of H */ FLAT = sdiv(F,F2); + FLAT /= LCOEF(FLAT); I = 0; /* square free factorization of H */ while ( deg(FLAT,V) ) { @@ -126,6 +127,7 @@ def sqfr_ff(F) FLAT1 = simp_ff(1); else FLAT1 = ugcd(F,FLAT); + FLAT1 /= LCOEF(FLAT1); G = sdiv(FLAT,FLAT1); FLAT = FLAT1; L = cons([G,I],L); @@ -467,7 +469,7 @@ def lnf_insert(P,L,V) def c_z_ff(F,E) { Type = field_type_ff(); - if ( Type == 1 || Type == 3 ) + if ( Type == 1 || Type == 3 || Type == 4 ) return c_z_lm(F,E); else return c_z_gf2n(F,E);