Bill Allombert on Thu, 08 Jun 2023 15:25:18 +0200


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

Re: Issue with fullfactor


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) byt logint(x,2).

I will send you a fixed version.

Cheers,
Bill.