Karim Belabas on Fri, 05 Dec 2014 17:32:36 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Problem with Flx_ffisom function


* Jean-Pierre Flori [2014-12-05 17:22]:
> Isn't "f" a polynomial over Z?

If is (more precisely a ZX or FpX: a t_POL with t_INT coefficients),
hence not an Flx (a t_VECSMALL with 1 codeword and ulong coefficients).

You're correctly converting from ZX_to_Flx here, before applying an
Flx_* function:
         i = Flx_is_irred(ZX_to_Flx(f, l), l);

You must do the same before Flx_ffisom.

Cheers,

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux1.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`