#16719: not all gap integers get converted
--------------------------+------------------------------------------------
   Reporter:  rws         |            Owner:
       Type:  defect      |           Status:  new
   Priority:  major       |        Milestone:  sage-6.3
  Component:  interfaces  |         Keywords:  gap, bignum, expect, pexpect
  Merged in:              |          Authors:
  Reviewers:              |  Report Upstream:  N/A
Work issues:              |           Branch:
     Commit:              |     Dependencies:
   Stopgaps:              |
--------------------------+------------------------------------------------
 As first reported in #15625 (comment:7) with `lucas_number1`, the same
 problem is encountered with gap evaluation of Stirling numbers:
 {{{
 sage: stirling_number1(1000,2)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-22-b29f3b3e2003> in <module>()
 ----> 1 stirling_number1(Integer(1000),Integer(2))

 /home/ralf/sage/local/lib/python2.7/site-
 packages/sage/combinat/combinat.pyc in stirling_number1(n, k)
     650     """
     651     return
 Integer(gap.eval("Stirling1({0},{1})".format(Integer(n),
 --> 652
 Integer(k))))
     653
     654

 /home/ralf/sage/local/lib/python2.7/site-packages/sage/rings/integer.so in
 sage.rings.integer.Integer.__init__
 (build/cythonized/sage/rings/integer.c:7902)()

 TypeError: unable to convert x (=<integer 301...000 (2566 digits)>) to an
 integer
 }}}
 Alternatively, this ticket may discuss abandoning the GAP expect interface
 for such big number results and use libpari instead.

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