#18266: Conversion from Sage polynomial to gap/libgap
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.3
      Component:  interfaces         |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/18266                 |  f1b8bcd98ffadede706ec244975fab07fa3bd942
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 It is a good idea to discuss what should we do concerning coercion and
 external softwares/libraries.

 Concerning this ticket, it is very handy that the coercion always go from
 Sage to third party interfaces
 {{{
 sage: x = polygen(ZZ)
 sage: p = x^3 + 2*x + 1
 sage: p(pari(2))
 13
 sage: type(_)
 <type 'sage.libs.pari.gen.gen'>
 }}}

 Making explicit the subset of Sage parents that can actually be
 represented in a given interface might indeed be much better. But
 certainly harder to write and maintain. The way I choose is the lazy one.
 The error messages you mentioned are wrong but should never appear if you
 restrict to "pure Sage functions". If desirable for pari/gap, I guess that
 implementing it belongs to another ticket.

--
Ticket URL: <https://trac.sagemath.org/ticket/18266#comment:7>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to