#15865: Should there be a method on a rational function field that returns the 
ring
it came from?
-------------------------+-------------------------------------------------
   Reporter:  darij      |            Owner:
       Type:  defect     |           Status:  new
   Priority:  major      |        Milestone:
  Component:  algebra    |         Keywords:  polynomials, fraction field,
  Merged in:             |  categories
  Reviewers:             |          Authors:
Work issues:             |  Report Upstream:  N/A
     Commit:             |           Branch:
   Stopgaps:             |     Dependencies:
-------------------------+-------------------------------------------------
 If I have a fraction field, how do I find the ring whose fraction field it
 is? Note that, since a fraction field sometimes serves several base rings
 at the same time, this can mean:

 - the base ring from which the fraction field was constructed (possibly
 thread-unsafe?);

 - a "canonical" base ring for which the fraction field can be constructed;

 - or anything inbetween.

 I'm not sure which of these are feasible; I'd be happy with a method that
 returns me a polynomial ring if I apply it to the fraction field of said
 polynomial ring. There is the `_base` attribute which seems to give the
 base ring, but I'd prefer an exposed method.

 I assume this also does the trick:
 {{{
 sage: g = FractionField(PolynomialRing(QQ, ['x']))
 sage: parent(g.zero().numerator())
 Rational Field
 }}}
 but it feels like a hack...

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