Le dimanche 8 janvier 2017 08:48:33 UTC+1, Ralf Stephan a écrit : > > On Saturday, January 7, 2017 at 10:54:36 PM UTC+1, vdelecroix wrote: >> >> Some symbolic expressions claim that they are not real >> > > No. They just don't claim being real. The docstring says explicitly > "Return True if this expression is known to be a real number." > > I guess we could (and should) make it consistent. See also the related >> #16436. > > > You mean doing floating point computations to determine if an > expression is real? >
Aaarghh.. You might as well use bool(x.imag_part()==0), or some contraption testing x.maxima_methogs().carg() against 0 modulo 2*pi. I used the first one a few times, with some success. The second one might come in handy if the expression to be tested has a "nice" argument. HTH, -- Emmanuel Charpentier -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.