Complement(FiniteSet, FiniteSet)

20 views
Skip to first unread message

Gaurav Dhingra

unread,
Jul 11, 2015, 2:39:21 AM7/11/15
to sy...@googlegroups.com
Hi all
Currently we have
```
>>> m,n = symbols('m n')
>>> Finite(1,2,3) - FiniteSet(m,n)
FiniteSet(1, 2, 3) # why this ? Why is it not returned unevaluated ?
```

Gaurav

AMiT Kumar

unread,
Jul 11, 2015, 3:49:00 AM7/11/15
to sy...@googlegroups.com
That's a bug.

The behavior of FiniteSet while having symbolic elements into it
was recently changed here: https://github.com/sympy/sympy/pull/9540

So, the new behavior, is yet not implemented for all other operations,
that's probably one of the reasons for this.

AMiT Kumar
Reply all
Reply to author
Forward
0 new messages