Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium Assumptions
New issue 2324 by [email protected]: i**2 is real and i**3 is not
http://code.google.com/p/sympy/issues/detail?id=2324
If i is declared as imaginary then `ask(i**2, Q.real)` should return True
and `ask(i**3, Q.real)` should be False. Unlike being complex (which
contains real and imaginary as subsets) being imaginary means there is no
real part.
h[5] >>> i = Symbol('i', imaginary=True)
h[5] >>> ask(i**2,Q.real)
h[5] >>> ask(i**3,Q.real)
This is fixed for the old assumption system.
h[5] >>> (i**2).is_real
True
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.