Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve evaluation of Intersection's for FiniteSet with symbolic elements #112

Merged
merged 6 commits into from
Apr 1, 2016

Conversation

skirpichev
Copy link
Collaborator

see sympy/sympy#8508

a replacement for #11 (travis-ci won't build old pr?)

I believe, we should be more careful for FiniteSet's with symbolic elements also in following cases:

In [1]: len(FiniteSet(x, y))
Out[1]: 2
In [2]: for i in FiniteSet(x, y):
   ...:     print(i)
   ...: 
x
y

We can iterate over this set only if elements are non-Symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature requests (or implementation) sets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants