Changes between Initial Version and Version 3 of Ticket #24332


Ignore:
Timestamp:
Dec 7, 2017, 10:03:12 AM (5 years ago)
Author:
Jeroen Demeyer
Comment:

Traceback please

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24332

    • Property Keywords cypari2 pari added
    • Property Cc Jeroen Demeyer added
    • Property Priority changed from blocker to major
  • Ticket #24332 – Description

    initial v3  
    22
    33{{{
    4 sage: R.<x> = QQ[]
    5 sage: poly = x^7 - 6*x^6 + 15*x^5 - 20*x^4 + 15*x^3 - 6*x^2 + x
    6 sage: poly.roots(ring=CC)
     4sage: sage: R.<x> = QQ[]
     5....: sage: poly = x^7 - 6*x^6 + 15*x^5 - 20*x^4 + 15*x^3 - 6*x^2 + x
     6....: sage: poly.roots(ring=CC)
     7....:
     8---------------------------------------------------------------------------
     9PariError                                 Traceback (most recent call last)
     10<ipython-input-1-04b1981b5dbe> in <module>()
     11      1 R = QQ['x']; (x,) = R._first_ngens(1)
     12      2 poly = x**Integer(7) - Integer(6)*x**Integer(6) + Integer(15)*x**Integer(5) - Integer(20)*x**Integer(4) + Integer(15)*x**Integer(3) - Integer(6)*x**Integer(2) + x
     13----> 3 poly.roots(ring=CC)
     14
     15/usr/local/src/sage-config/src/sage/rings/polynomial/polynomial_element.pyx in sage.rings.polynomial.polynomial_element.Polynomial.roots (build/cythonized/sage/rings/polynomial/polynomial_element.c:70160)()
     16   7574                     real_field = RealField(L.prec())
     17   7575
     18-> 7576                 return self.change_ring(real_field).roots(ring=L, multiplicities=multiplicities, algorithm=algorithm)
     19   7577             elif is_pAdicRing(L) or is_pAdicField(L):
     20   7578                 p = L.prime()
     21
     22/usr/local/src/sage-config/src/sage/rings/polynomial/polynomial_element.pyx in sage.rings.polynomial.polynomial_element.Polynomial.roots (build/cythonized/sage/rings/polynomial/polynomial_element.c:66462)()
     23   7464                 if not input_arbprec:
     24   7465                     self = self.change_ring(CC if input_complex else RR)
     25-> 7466                 ext_rts = self.__pari__().polroots(precision=L.prec())
     26   7467
     27   7468             if output_complex:
     28
     29cypari2/gen.pyx in cypari2.gen.Gen.polroots()
     30
     31cypari2/handle_error.pyx in cypari2.handle_error._pari_err_handle()
     32
    733PariError: overflow in expo()
    834}}}