Hello,

I get an error message when trying to compare some algebraic numbers.

Here is the simplest example I could get:

{{{
#!python
sage: M = matrix(3, [0,0,1,1,0,1,0,1,0])
sage: x = vector([0,0,1])
sage: y = M.eigenvectors_left()[1][1][0]
sage: z = M.eigenvectors_left()[2][1][0]
sage: a = abs(x*y)
sage: b = abs(x*z)
sage: a
0.7548776662466928?
sage: b
0.7548776662466928?
sage: a == b   # crashes
[...]
TypeError: Unable to convert number to real interval.
sage: a*a == a*a   # crashes
[...]
TypeError: Unable to convert number to real interval.
sage: a == a   #this works
True
}}}

Thanks in advance,
Timo

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to