Bill Allombert on Fri, 09 Jun 2023 13:15:18 +0200


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

Re: Issue with fullfactor


On Fri, Jun 09, 2023 at 01:08:06AM +0200, Jean-Luc Arnaud wrote:
> Le 08/06/2023 à 15:20, Bill Allombert a écrit :
> > On Thu, Jun 08, 2023 at 03:08:18PM +0200, Jean-Luc ARNAUD wrote:
> > > Hello,
> > > 
> > > I installed fullfactor as described in the doc, AFAIK.
> > > 
> > > Now, launching it with "\r fullfactor.gp", I'm getting this warning:
> > > 
> > > ? \r fullfactor.gp
> > >    ***   variable name expected:
> > > isprimepower(x)=my(p);if(!ispower(x,,&p),p=x);
> > >    *** ^----------------------------------------------
> > >    ***   variable name expected:
> > > logint(x,b=2)=my(r=0);while(x>=b,x=x\b;r++);r;
> > >    *** ^----------------------------------------------
> > > cpu time = 13 ms, real time = 19 ms.
> > >    ***   unexpected ';': ...1,if(reg>numpbases,if(c++;c>numcbases,break);b
> > >    *** ^---------------------
> > >    ***   too few arguments: ...ctor(logint(eulerphi(2*b)));my(g=vectorsmall(e
> > > *** ^---------------------
> > Yes, this functions already exist in GP, so you can remove the definition.
> > the only issue is that you have to replace logint(x) by logint(x,2).
> > 
> > I will send you a fixed version.
> > 
> Many thanks, Bill and Max, for explanation and help.
> Bill, your new version of fullfactor works like a charm!

OK, so I added a link to my new version on
https://pari.math.u-bordeaux.fr/Scripts/
the new version  is at:
<https://pari.math.u-bordeaux.fr/pub/demeyer/fullfactor_pari-2.15.tgz>

Cheers,
Bill.