#15746: Polynomials over finite fields gives overflow error with large numbers
----------------------------+----------------------------------------------
   Reporter:  tscrim        |            Owner:  tscrim
       Type:  defect        |           Status:  new
   Priority:  major         |        Milestone:  sage-6.1
  Component:  basic         |         Keywords:  polynomials, finite fields
  arithmetic                |          Authors:
  Merged in:                |  Report Upstream:  N/A
  Reviewers:                |           Branch:
Work issues:                |     Dependencies:
     Commit:                |
   Stopgaps:                |
----------------------------+----------------------------------------------
 {{{
 sage: R.<x,y> = GF(7)[]
 sage: R(2^31)
 ---------------------------------------------------------------------------
 OverflowError                             Traceback (most recent call
 last)
 <ipython-input-46-6fd7adc32b9b> in <module>()
 ----> 1 R(Integer(2)**Integer(31))

 /home/travis/sage/local/lib/python2.7/site-
 packages/sage/rings/polynomial/multi_polynomial_libsingular.so in
 
sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular.__call__
 (sage/rings/polynomial/multi_polynomial_libsingular.cpp:6134)()

 /home/travis/sage/local/lib/python2.7/site-
 packages/sage/rings/polynomial/multi_polynomial_libsingular.so in
 
sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular._coerce_c_impl
 (sage/rings/polynomial/multi_polynomial_libsingular.cpp:5633)()

 OverflowError: Python int too large to convert to C long
 }}}

 Compare with:
 {{{
 sage: GF(7)(2^31)
 2
 }}}
 This might be related to other problems posted in #8857 or fixed by
 #11239.

--
Ticket URL: <http://trac.sagemath.org/ticket/15746>
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/groups/opt_out.

Reply via email to