Bill Allombert on Thu, 18 Mar 2010 11:01:19 +0100

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

Re: Degree overflow in pow_monome - PARI

On Thu, Mar 18, 2010 at 01:06:32AM -0500, Phat Tran wrote:
> Back to the problem, I found that the function gpowgs() had caused the
> error. I replaced it with powgi(), but it gave me a wrong answer. (I got a
> correct answer by using GP). I assigned m, n, b and d 30-digit numbers.
> Any help ?

You also need to replace gmodulss(1, n) by gmodulsg(1, n), since
n is not a "long int".