Re: [sage-support] Re: Stange behavior with QQbar[z]

2016-11-08 Thread Vincent Delecroix
On 8 November 2016 at 11:28, Thierry Dumont wrote: > Le 08/11/2016 à 11:05, Vincent Delecroix a écrit : >> On 8 November 2016 at 10:17, Thierry Dumont >> wrote: >>> Le 08/11/2016 à 08:43, Vincent Delecroix a écrit : Concerning representation of algebraic numbers, it is printed as an ex

Re: [sage-support] Re: Stange behavior with QQbar[z]

2016-11-08 Thread Thierry Dumont
Le 08/11/2016 à 11:05, Vincent Delecroix a écrit : > On 8 November 2016 at 10:17, Thierry Dumont > wrote: >> Le 08/11/2016 à 08:43, Vincent Delecroix a écrit : >>> Concerning representation of algebraic numbers, it is printed as an >>> exact rational if and only if it is stored as an exact ration

Re: [sage-support] Re: Stange behavior with QQbar[z]

2016-11-08 Thread Vincent Delecroix
On 8 November 2016 at 10:17, Thierry Dumont wrote: > Le 08/11/2016 à 08:43, Vincent Delecroix a écrit : >> Concerning representation of algebraic numbers, it is printed as an >> exact rational if and only if it is stored as an exact rational. It >> will be if the method exactify has been called on

Re: [sage-support] Re: Stange behavior with QQbar[z]

2016-11-08 Thread Thierry Dumont
Le 08/11/2016 à 08:43, Vincent Delecroix a écrit : > Concerning representation of algebraic numbers, it is printed as an > exact rational if and only if it is stored as an exact rational. It > will be if the method exactify has been called on the underlying > representation of the number. Here is a

Re: [sage-support] Re: Stange behavior with QQbar[z]

2016-11-07 Thread Vincent Delecroix
Concerning representation of algebraic numbers, it is printed as an exact rational if and only if it is stored as an exact rational. It will be if the method exactify has been called on the underlying representation of the number. Here is a simple example that shows the difference sage: a = QQbar(

[sage-support] Re: Stange behavior with QQbar[z]

2016-11-07 Thread Nils Bruin
On Monday, November 7, 2016 at 5:59:14 AM UTC-8, tdumont wrote: > > > okay. Now let us construct a polynomial from l: > sage: print sum([l[i]*z^i for i in range(0,len(l))]) > (-0.4022786138875136? + 0.?e-18*I)*z + 1 > ^ >Why? an imaginary part? >--