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
FiniteSet documentation inconsistent with usage in sympy #23585
Comments
Yes if that's the case it should be something like |
There isn't really any "particular type". A FiniteSet is just a finite set of SymPy expressions. The set is uniquified through |
You're right though that set objects shouldn't be restricted to holding just numbers, or even just Expr, although perhaps it would be useful to make sets restricted a single kind of object at a time by default so that you can use |
The documentation for
FiniteSet
(https://github.com/sympy/sympy/blob/master/sympy/sets/sets.py#L1886) states that theFiniteSet
:Represents a finite set of discrete numbers.
.But in sympy itself the
FiniteSet
is used with non-integer arguments. Statements likeFiniteSet('a', 'd', 'c')
run fine.The text was updated successfully, but these errors were encountered: