Package: pari
Version: 2.8
When passing a rational function that simplifies to a polynomial to the subst() function. I sometimes get a real number back (as expected and desired: see the *3 variables below in the Pari/GP session output), but sometimes get a polynomial returned (see the *2 variables below in the Pari/GP session output).
This is happening on a Windows 8 laptop with several different 2.8 builds of Pari/GP.
The session contents are below, followed by the contents of the script used and this script is also attached to this email.
I hope this information is useful. Please let me know if you need any further information.
Regards,
Paul
GP/PARI CALCULATOR Version 2.8.0 (development 17322-7d69ad8)
i686 running mingw (ix86/GMP-5.1.3 kernel) 32-bit version
compiled: Jan 9 2015, gcc version 4.9.1 (GCC)
threading engine: single
(readline v6.2 enabled, extended help enabled)
Copyright (C) 2000-2014 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 ?13 for how to get moral (and possibly technical) support.
parisize = 4000000, primelimit = 500000
? \r
bug-test-check.gp? bug_check()
f1=1/w
f1 type=t_RFRAC
f2=w
f2 type=t_POL
vTemp2=2.3593040859717764207, type=t_POL
fVTemp2=2.3593040859717764207, type=t_POL
f3=w
f3 type=t_POL
vTemp3=2.3593040859717764207, type=t_REAL
fVTemp3=2, type=t_INT
f2-f3=0
?
=================
script contents: