#9054: create a class for basic function_field arithmetic for Sage
---------------------------+------------------------------------------------
Reporter: was | Owner: AlexGhitza
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.4.3
Component: algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by was):
Replying to [comment:2 salmanhb]:
> There seems to be an issue with returning the base ring of a
RationalFunctionField. Neither base() nor base_ring() return the correct
ring:
>
>
> {{{
> sage: K.<t> = FunctionField(QQ); K
> Rational function field in t over Rational Field
> sage: R1 = K.base(); R1
> Rational function field in t over Rational Field
> sage: R2 = K.base_ring(); R2
> Rational function field in t over Rational Field
> sage: R3.<s> = QQ[]; K3 = Frac(R3); K3
> Fraction Field of Univariate Polynomial Ring in s over Rational Field
> sage: R3
> Univariate Polynomial Ring in s over Rational Field
> sage: K3.base() == R3
> True
> }}}
The above is correct. To get what you want, use the constant_field()
method.
{{{
sage: K.<t> = FunctionField(QQ);
sage: K.constant_field()
Rational Field
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9054#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.