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

solveset issue when solving Piecewise with conditions not involving the symbol of interest #10534

Open
smichr opened this issue Feb 5, 2016 · 4 comments
Labels
Easy to Revive Pull requests that appears abandoned and only has minor details to fix solvers.solveset

Comments

@smichr
Copy link
Member

smichr commented Feb 5, 2016

>>> solveset_real(Piecewise((x, y<0), (x + 1, True)), x)
EmptySet()

I think the solution should be Piecewise((0, y < 0), (-1, True)).

@smichr
Copy link
Member Author

smichr commented Mar 28, 2019

This is still not working in master, #10550 would need some attention to get the changes there to merge with master.

@smichr
Copy link
Member Author

smichr commented Apr 23, 2019

I don't think the answer can be {-1, 0} because this is not true for each condition.

In solveset notation, I think this would be Piecewise(({0}, y < 0), ({-1}, True)). Is there a way to represent a Piecewise set?

@smichr
Copy link
Member Author

smichr commented Apr 23, 2019

For a univariate Piecewise the result is ok:

>>> solveset(Piecewise((x**2-4,x<5),(x**2-36,True)),x,Reals)
{-2, 2, 6}

@czgdp1807
Copy link
Member

Update:
Currently the issue is still unresolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy to Revive Pull requests that appears abandoned and only has minor details to fix solvers.solveset
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants