Hi all
I am trying to run a particular piece of code and it gives an error
saying there is a bug in Pari/gp. It turns out that the bug is not
present in previous versions of Pari like 2.3.4 (on Windows at least).
And if I understand correctly that Sage ships with the newest install
of Pari. Is there any way to use the latest Sage version with an old
version of Pari?? Any input is appreciated.
For those interested, what follows is the code along with the error
message.
t=gp.thueinit(x^3+21*x^2-2*x-25,1);
m=gp.thue(t,1)
and I seem to get the following error message
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_5.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("dD1ncC50aHVlaW5pdCh4XjMrMjEqeF4yLTIqeC0yNSwxKTsKbT1ncC50aHVlKHQsMSk="),globals())
+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmp1y5591/___code___.py", line 4, in <module>
exec compile(u'm=gp.thue(t,_sage_const_1 )
File "", line 1, in <module>
File "/usr/local/share/sage/local/lib/python2.6/site-packages/sage/
interfaces/interface.py", line 563, in __call__
return self._parent.function_call(self._name, list(args), kwds)
File "/usr/local/share/sage/local/lib/python2.6/site-packages/sage/
interfaces/interface.py", line 489, in function_call
return self.new(s)
File "/usr/local/share/sage/local/lib/python2.6/site-packages/sage/
interfaces/interface.py", line 264, in new
return self(code)
File "/usr/local/share/sage/local/lib/python2.6/site-packages/sage/
interfaces/interface.py", line 199, in __call__
return cls(self, x, name=name)
File "/usr/local/share/sage/local/lib/python2.6/site-packages/sage/
interfaces/expect.py", line 1114, in __init__
raise TypeError, x
TypeError: Error executing code in GP:
CODE:
sage[9]=thue(sage[7],sage[8]);
PARI/GP ERROR:
*** at top-level: sage[9]=thue(sage[7],sage[8]
*** ^--------------------
*** thue: bug in PARI/GP (Segmentation Fault), please report
Thanks
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org