2011/6/7 slelievre: > 2011-06-07 Burcin Erocal: >> On Tue, 7 Jun 2011, Samuel wrote: >> >>> Can we not use + to add complex numbers? >>> >>> sage: j = -1/2 + sqrt(3)/2*i >>> sage: a = -2*j*j >>> sage: b = -j/2 >>> sage: print a.real(); print b.real(); print (a+b).real() >>> 1 >>> 1/4 >>> + 1/4 >> >> With Sage 4.7.alpha1, I get: >> >> sage: sage: j = -1/2 + sqrt(3)/2*i >> sage: sage: a = -2*j*j >> sage: sage: b = -j/2 >> sage: sage: print a.real(); print b.real(); print (a+b).real() >> 1 >> 1/4 >> 5/4 >> >> Which version are you using? > > That was on Sage 4.6.2. Same with Sage 4.7. > I get the same as you with Sage 4.7.1.alpha1. > You probably meant that, and not 4.7.alpha1? > > I suppose this is thanks to the trac ticket 7377 > http://trac.sagemath.org/sage_trac/ticket/7377 > which was merged in Sage 4.7.alpha0.
I meant "merged in Sage 4.7.1.alpha0"... : ) But I was wrong: in 4.7.1.alpha0 I still get the bug. My new guess is trac ticket 9947, merged in Sage 4.7.alpha1, is to be thanked for the cure. http://trac.sagemath.org/sage_trac/ticket/7377 Thank you! -- 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-support URL: http://www.sagemath.org
