below is some PARI-GP code showing a function called âcleaner_for_leading_coefficient
â that does not work.
Surprisingly, however, everything goes fine if one executes all the instructions wrapped inside the function step by step, as shown in the code below.
Judging from the error message, the problem is related to my use of âModâ inside the function.
Thanks in advance for any help.
Ewan
GP/PARI CALCULATOR Version 2.5.2 (released)
i386 running darwin (x86-64/GMP-5.0.4 kernel) 64-bit version
compiled: Sep 18 2012, gcc-4.5.4 (MacPorts gcc45 4.5.4_5)
(readline v6.2 enabled, extended help enabled)
Copyright (C) 2000-2011 The PARI Group
PARI/GP is free software, covered by the GNU General Public License, and comes
WITHOUT ANY WARRANTY WHATSOEVER.
Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.
}
?
? first_trial=cleaner_for_leading_coefficient(paul1,paul2,beth,nuu)
*** at top-level: first_trial=cleaner_for_leading_
*** ^--------------------
*** in function cleaner_for_leading_coefficient:
*** ...(temp,var_x,symb);temp3=1/temp2;return(lift(t
*** ^--------------------
*** _/_: impossible inverse modulo: Mod(0, 468152903089).
*** Break loop: type 'break' to go back to GP
break>
break> break