#7150: Wrong substitution implementation for fraction fields
-------------------------+--------------------------------------------------
   Reporter:  novoselt   |       Owner:            
       Type:  defect     |      Status:  new       
   Priority:  critical   |   Milestone:  sage-4.1.3
  Component:  symbolics  |    Keywords:            
Work_issues:             |      Author:            
   Reviewer:             |      Merged:            
-------------------------+--------------------------------------------------
 I am getting this in 4.1.1 and find it really frustrating (especially
 since it took me several hours to catch):


 {{{
 sage: QQ["x", "y"].inject_variables()
 Defining x, y
 sage: e1 = x^2*y^3 - x^2*y - x*y
 sage: e2 = e1.parent().fraction_field()(e1)
 sage: print e2
 x^2*y^3 - x^2*y - x*y
 sage: print e2.subs(y=SR("s"))
 x^2*s^3 - (x^2 - x)*s
 }}}
 The last line is wrong!

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