Hello,

method 'refine_root()' of class 'Poly' seems to unexpectedly raise an 
exception.

The following code produces the exception:

x = Symbol( "x" )
p = Poly( x**4 - 6*x**3 + 11*x**2 - 6*x + 1 )
p.refine_root( 0, 1 ) # raises: sympy.polys.polyerrors.RefinementFailed: 
there should be exactly one root in (0/1, 1/1) interval

p has a double root at sqrt(5)/2 + 3/2 and a double root at -sqrt(5)/2 + 
3/2.
Thus, if I understand correctly, the call of method 'refine_root()' should 
correctly yield a refinement interval for the double root at '-sqrt(5)/2 + 
3/2'.

However, it raises a 'RefinementFailed' exception.

Is this a bug?

Thank you in advance,
Heiner

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to