#7958: Conversion of rationals into the fraction field of integer polynomials
-------------------------+--------------------------------------------------
   Reporter:  spancratz  |       Owner:  robertwb    
       Type:  defect     |      Status:  needs_review
   Priority:  major      |   Milestone:  sage-4.3.2  
  Component:  coercion   |    Keywords:              
     Author:  spancratz  |    Upstream:  N/A         
   Reviewer:             |      Merged:              
Work_issues:             |  
-------------------------+--------------------------------------------------

Comment(by mhansen):

 {{{

 sage: _.<x> = ZZ[]
 sage: K.<a> = NumberField(x^5-3*x^4+2424*x^3+2*x-232)
 sage: R.<b> = K.ring_of_integers()
 sage: S.<y> = R[]
 sage: F = Frac(S)
 sage: F(1/a)
 a^4 - 3*a^3 + 2424*a^2 + 2/232
 sage: F(1/a).numerator()
 a^4 - 3*a^3 + 2424*a^2 + 2
 sage: F(1/a).denominator()
 232

 }}}

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


Reply via email to