Re: citing the problem line 1912 in ell.gp (2011 copy)

Bill Allombert <[email protected]> Fri, 31 Jul 2026 09:20:06 +0200
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <amxMppqBOmycXegB@seventeen>
On Thu, Jul 30, 2026 at 08:25:08PM -0700, American Citizen wrote:
> > Line 1912 in ell.gp (2011 copy) is causing problems in current GP-Pari
> > 2.17.4
> > 
> > 1911  \\ choix de l'algorithme suivant la 2-torsion
> > 1912    ell *= Mod(1,bnf.pol);
> > 1913    eqtheta = Pol([1,ell.a2,ell.a4,ell.a6]);
> > 
> > We cannot multiply the ell structure anymore due to the use of
> > t_VECSMALL in it.
> > 
> > Can we do:
> > 
> > ell=ellinit([Mod(ell.a1,bnf.pol),Mod(ell.a2,bnf.pol),Mod(ell.a3,bnf.pol),Mod(ell.a4,bnf.pol),Mod(ell.a6,bnf.pol)]);

Try
ell=ellinit(Mod(ell[1..5],bnf.pol))

(also, remove the ,1 of all the ellinit())

Cheers,
Bill.