[sage-support] Re: How to test if an algebraic number is real

2009-01-05 Thread William Stein
On Mon, Jan 5, 2009 at 12:46 PM, Shing Hing Man wrote: > > Thanks for the reply! > I will upgrade. Thanks. Note that we haven't released sage-3.2.3 yet, so "sage -upgrade" won't get you that version. We intend to release it today or tomorrow, and post binaries within 2-3 days. William --~--~

[sage-support] Re: How to test if an algebraic number is real

2009-01-05 Thread Shing Hing Man
Thanks for the reply! I will upgrade. Shing On Jan 4, 8:46 pm, "John Cremona" wrote: > I tried this in 3.2.3.final and it works fine: > > sage: a,b = matrix(QQ,[[0,1],[-4,0]]).eigenvalues(); a,b > (2*I, -2*I) > sage: a in RR > False > sage: b in RR > False > > so perhaps you should upgrade? > >

[sage-support] Re: How to test if an algebraic number is real

2009-01-04 Thread John Cremona
I tried this in 3.2.3.final and it works fine: sage: a,b = matrix(QQ,[[0,1],[-4,0]]).eigenvalues(); a,b (2*I, -2*I) sage: a in RR False sage: b in RR False so perhaps you should upgrade? John Cremona 2009/1/4 Shing Hing Man : > > Hi, > I would like to test if an eigenvalue of a matrix over t