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
Deprecate set.is_real property, use set.is_subset(Reals) instead #7996
Conversation
+1 to this commit |
Let's rebase on #7972 and commit. |
Why on this? Yes, less "broken" tests here, but I did here a lot of changes in the quantum module. |
You made changes in the quantum module by adding assumptions to symbols which are consistent with the existing test results (which suggests that this is what the quantum folks meant). |
On Mon, Sep 08, 2014 at 10:50:54AM -0700, Christopher Smith wrote:
Yes. And I did very questionable change in the represent.py for this. (In my view, the usage of Symbol's is totally broken in the quantum
Or that they have very bad tests or(and) bad test coverage. |
>>> represent(X*x*y) | ||
x*DiracDelta(x - x_3)*DiracDelta(x_1 - y) | ||
-x*DiracDelta(x - x_3)*DiracDelta(x_1 - y)*Heaviside(-x - oo) + x*DiracDelta(x - x_3)*DiracDelta(x_1 - y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to make XKet and Xbra be real and bounded? Otherwise this result could be Piecewise((x_DiracDelta(x - x_3)_DiracDelta(x_1 - y), Ne(x, -oo)), (S.NaN, True)).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebased |
@asmeurer, can we consider this for 0.7.6? |
Absolutely. Is it ready to go? |
Can you summarize the differences? It says the only difference is the fixes in the quantum module. The one uses |
Oh I guess the other one changes the test output. |
I actually have issues with both of those. They both introduce this strange new In [1]: integrate(-x*DiracDelta(x - y), (x, -oo, oo))
Out[1]: y⋅Heaviside(-y - ∞) - y If |
On Sat, Sep 13, 2014 at 02:32:07PM -0700, Aaron Meurer wrote:
Yes. That's why we can't simplify this term. -y can be oo. |
rebase on top of #7861 |
will merge in 24hr |
Deprecate set.is_real property, use set.is_subset(Reals) instead
fixes #6212
(on top of #7861, see also #7972)