#9948: Conversion of p-adic to gp is buggy because of "+Infinity" exponent
--------------------------+-------------------------------------------------
Reporter: jdemeyer | Owner: was
Type: defect | Status: new
Priority: major | Milestone:
Component: interfaces | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
{{{
sage: gp(pAdicField(5)(0))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/jdemeyer/<ipython console> in <module>()
/usr/local/src/sage-4.6.prealpha4/local/lib/python2.6/site-
packages/sage/interfaces/expect.pyc in __call__(self, x, name)
1032 return cls(self, x, name=name)
1033 try:
-> 1034 return self._coerce_from_special_method(x)
1035 except TypeError:
1036 raise
/usr/local/src/sage-4.6.prealpha4/local/lib/python2.6/site-
packages/sage/interfaces/expect.pyc in _coerce_from_special_method(self,
x)
1056 s = '_gp_'
1057 try:
-> 1058 return (x.__getattribute__(s))(self)
1059 except AttributeError:
1060 return self(x._interface_init_())
/usr/local/src/sage-4.6.prealpha4/local/lib/python2.6/site-
packages/sage/structure/sage_object.so in
sage.structure.sage_object.SageObject._gp_
(sage/structure/sage_object.c:4092)()
/usr/local/src/sage-4.6.prealpha4/local/lib/python2.6/site-
packages/sage/structure/sage_object.so in
sage.structure.sage_object.SageObject._interface_
(sage/structure/sage_object.c:3501)()
/usr/local/src/sage-4.6.prealpha4/local/lib/python2.6/site-
packages/sage/interfaces/expect.pyc in __call__(self, x, name)
1030
1031 if isinstance(x, basestring):
-> 1032 return cls(self, x, name=name)
1033 try:
1034 return self._coerce_from_special_method(x)
/usr/local/src/sage-4.6.prealpha4/local/lib/python2.6/site-
packages/sage/interfaces/expect.pyc in __init__(self, parent, value,
is_name, name)
1449 except (TypeError, KeyboardInterrupt, RuntimeError,
ValueError), x:
1450 self._session_number = -1
-> 1451 raise TypeError, x
1452 self._session_number = parent._session_number
1453
TypeError: Error executing code in GP/PARI:
CODE:
sage[2]=0 + O(5^+Infinity);
GP/PARI ERROR:
*** at top-level: sage[2]=0+O(5^+Infinity)
*** ^---------
*** gtos expected an integer, got 'Infinity'.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9948>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.