Re: [sage-support] complex numbers printing real part + imaginary part

2017-04-12 Thread Pedro Cruz
We are producing study materials where it's usual to use "a + b I". The following occurs in Sage 7.6: sage: 1+2*I 2*I + 1 and the question is: how to rewrite the complex numbers way of printing. I've seen it's type and maybe changing _repr_ but I have never tried. We have done the function

Re: [sage-support] complex numbers printing real part + imaginary part

2017-04-11 Thread Jeroen Demeyer
On 2017-04-11 18:25, Pedro Cruz wrote: Hello, sage is printing b*I + a and we want to see a + b * I Do you have a complete example? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails

Re: [sage-support] complex numbers printing real part + imaginary part

2017-04-11 Thread Vincent Delecroix
Hello, Indeed there are some unconsistancies sage: CC(1,2) 1.00 + 2.00*I sage: CDF(1,2) 1.0 + 2.0*I versus sage: QQbar.one() + 2*QQbar.gen() 2*I + 1 sage: K = QuadraticField(-1) sage: K.one() + 2*K.gen() 2*a + 1 Vincent On 11/04/2017 18:25, Pedro Cruz wrote:

[sage-support] complex numbers printing real part + imaginary part

2017-04-11 Thread Pedro Cruz
Hello, sage is printing b*I + a and we want to see a + b * I What could we do ? We can create a function to print it a + b*I but is any other standard way? Thank you, Pedro -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from