Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium EasyToFix Simplify

New issue 2328 by asmeurer: expand() doesn't parse bad hints correctly
http://code.google.com/p/sympy/issues/detail?id=2328

In [46]: (1/(-sqrt(2)/2 - sqrt(2)/2*I)).expand(comlex=True)
Out[46]:
        1
─────────────────
    ⎽⎽⎽       ⎽⎽⎽
  ╲╱ 2    ⅈ⋅╲╱ 2
- ───── - ───────
    2        2

In [47]: (1/(-sqrt(2)/2 - sqrt(2)/2*I)).expand(complex=True)
Out[47]:
    ⎽⎽⎽       ⎽⎽⎽
  ╲╱ 2    ⅈ⋅╲╱ 2
- ───── + ───────
    2        2

The problem is that I misspelled complex in the first one. It should have raised a TypeError.

--
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.

Reply via email to