On Feb 1, 12:01 pm, Burcin Erocal <bur...@erocal.org> wrote: > On Mon, 31 Jan 2011 14:19:51 -0800 (PST) > > Michael Beeson <profbee...@gmail.com> wrote: > > It seems that var('z') makes sage think z is real. > > > simplify(real(z)) returns z and simplify(imag(z)) returns 0. > > This is #6862 on trac: > > http://trac.sagemath.org/sage_trac/ticket/6862 > > It's one of the major bugs remaining in the maxima interface. > > Cheers, > Burcin
I would like to add what is perhaps a related issue. If I do var('a') assume(a, 'real') I would like to have the imaginary part returned as zero. However imag(a) returns imag(a), as though it is a symbol, I believe because type(imag(a) returns <type 'sage.symbolic.expression.Expression'>. To be consistent with the assumption, though, I think that iimag(a) should return zero. Jeff -- 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