#7712: error in polynomial substitution with interval coefficients
--------------------------------+-------------------------------------------
   Reporter:  zimmerma          |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  major             |   Milestone:  sage-4.3  
  Component:  basic arithmetic  |    Keywords:            
Work_issues:                    |      Author:            
   Upstream:  N/A               |    Reviewer:            
     Merged:                    |  
--------------------------------+-------------------------------------------
 Consider the following example:
 {{{
 sage: P.<y,z> = PolynomialRing(RealIntervalField(2))
 sage: Q.<x> = PolynomialRing(P)
 sage: C = (y-x)^3
 sage: C(y/2)
 0
 }}}
 I do not understand why the result is 0. In fact there are two
 errors:
 (i) the result is a polynomial of degree 3 in y, thus y**3 should appear
 (ii) the result should "contain" the exact result which is 0.125*y**3,
 thus it should be c*y**3 where c is an interval containing
 0.125. Compare the following with a precision of 10 bits:
 {{{
 sage: P.<y,z> = PolynomialRing(RealIntervalField(10))
 sage: Q.<x> = PolynomialRing(P)
 sage: C = (y-x)^3
 sage: C(y/2)
 0.12500?*y^3
 }}}

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