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.

Thank you!

Samuel

-- 
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