#18020: Raising polynomial to power
-----------------------+---------------------------------------------
   Reporter:  xhumari  |            Owner:  xhumari
       Type:  defect   |           Status:  new
   Priority:  major    |        Milestone:  sage-6.6
  Component:  algebra  |         Keywords:  days64, power, polynomial
  Merged in:           |          Authors:  Sandi Xhumari
  Reviewers:           |  Report Upstream:  N/A
Work issues:           |           Branch:
     Commit:           |     Dependencies:
   Stopgaps:           |
-----------------------+---------------------------------------------
 Raising a polynomial to a big integer power breaks as follows:

 sage: R.<x> = ZZ[]
 sage: x!^(3!^20)

 Error in lines 2-2
 Traceback (most recent call last):

   File "/projects/794a52fb-14e4-4c1c-
 b6f6-fffecedc8b5f/.sagemathcloud/sage_server.py", line 875, in execute
     exec compile(block+'\n', '', 'single') in namespace, locals''
   File "", line 1, in <module>File
 "sage/rings/polynomial/polynomial_integer_dense_flint.pyx", line 854, in
 
sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint.__pow__
 
(build/cythonized/sage/rings/polynomial/polynomial_integer_dense_[flint.cpp:9770
 flint.cpp:9770])
     def __pow__(Polynomial_integer_dense_flint self, int exp, ignored):

 OverflowError: value too large to convert to int

--
Ticket URL: <http://trac.sagemath.org/ticket/18020>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to