Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3708 by [email protected]: atoms does not work correctly in the
otherwise case of Piecewise
http://code.google.com/p/sympy/issues/detail?id=3708
Currently, the recomended use of Piecewise is
from sympy.abc import x, f, g
p = Piecewise( (0, x<-1), (f, x<=1), (g, True))
where the last case represents the "otherwise" in a Piecewise function.
However,
p.atoms(Symbol)
equals to
[x, f, g , True]
creating a probem for code generation. Drilling down, the problem seems to
be that the method atoms of sympy.basic.Basic wraps the literal value True
with a symbol of type Dummy .
I went down the structure but I didn't find the extact place in the
basic.py module where this happens
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.