#19084: libSingular functions' ring parameter defaults to the last used ring
---------------------------+--------------------------------------
   Reporter:  klee         |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  minor        |        Milestone:  sage-6.9
  Component:  interfaces   |         Keywords:
  Merged in:               |          Authors:  Kwankyu Lee
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:  u/klee/libsingular
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+--------------------------------------
 libSingular functions require a ring parameter set. But for some functions
 the ring parameter is redundant.

 Martin Albrecht answers to this issue:

 We could do this:

 - if no ring is given, we try to find one as we do currently.
 - if that fails because the inputs are not polynomials of any kind, we
 could use a dummy ring.

 My own solution to this problem is to store the last used ring in
 libSingular function calls, instead of using a dummy ring. In a Singular
 function call, if a ring is not found from the arguments, then the ring
 parameter defaults to the last used ring. The initial "last used" ring is
 set to `PolynomialRing(QQ,2,'x,y')`.

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