2009/9/2 Dirk <dirk.lau...@gmail.com> > > I'm the originator. In fairness to Jan, I must say that I only showed > him the code and output with no other comment than that I hoped that > the students would not ask me to explain it. > > I've in the meantime found a way of illustrating the point I meant to > make more clearly. > > sage: z=1.+sqrt(-1) > sage: base_ring(z) > Symbolic Ring > sage: base_ring(real(z)) > Symbolic Ring > sage: base_ring(imag(z)) > Real Field with 53 bits of precision > > Dirk > > I see, your point is that the following is inconsistent:
sage: z = 1.0+1.0*I sage: type(real(z)) <type 'sage.symbolic.expression.Expression'> sage: type(imag(z)) <type 'sage.rings.real_mpfr.RealNumber'> I agree that this definitely looks like a bug. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---