-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Formal set membership function #24171
Comments
This comment has been minimized.
This comment has been minimized.
Author: Ralf Stephan |
New commits:
|
Commit: |
comment:4
I can reproduce this error
I think why this now fails is because |
comment:5
I think it would be good if |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
LGTM. Thanks. |
Reviewer: Travis Scrimshaw |
comment:10
Thanks for the review. |
comment:11
Merge conflictw |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Dependencies: #31877 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:39
This branch works now as advertised, but a careful review of this design is needed |
comment:40
We could add more support for other infinite sets later on (e.g., number fields), but this would be good for most (perhaps all?) use-cases. I think everything else is good except I don't understand why this line is added (see the diff):
|
comment:41
that's just a leftover, I'll get rid of it |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:43
Thank you. Green bot => positive review. Please add yourself whether you think you are an author and/or reviewer. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed reviewer from Travis Scrimshaw to Travis Scrimshaw, Matthias Koeppe |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Changed author from Ralf Stephan to Ralf Stephan, Matthias Koeppe |
comment:49
Thanks! |
Changed branch from u/mkoeppe/24171-1 to |
To express solution sets from solvers an expression-is-element-of-set relation is needed. For ease of implementation this can be made a formal function
element_of
.It depends on sets being made coercible into SR. The present ticket plays safe and only does this for finite sets and a few standard infinite sets:
NN
,ZZ
,QQ
,AA
; andRealSet
s.element_of
converts to SymPy'sContains
. This is useful in combination with #31931, which adds SymPy conversions to some of the above sets.Depends on #31877
CC: @videlec
Component: symbolics
Author: Ralf Stephan, Matthias Koeppe
Branch/Commit:
a8c94ca
Reviewer: Travis Scrimshaw, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/24171
The text was updated successfully, but these errors were encountered: