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

solving a Relational involving Piecewise fails #10255

Open
smichr opened this Issue Dec 14, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@smichr
Copy link
Member

smichr commented Dec 14, 2015

>>> q=Piecewise((1, x < 1), (3, True)) > 1
>>> solve(q,x)
False  <---- should be (x >= 1)
>>> q.subs(x,1)  <-- for example, q is True when x is 1
True

skirpichev added a commit to diofant/diofant that referenced this issue Dec 14, 2015

Support inequalities with piecewise functions
Renamed:
    reduce_abs_inequality -> reduce_piecewise_inequality
    reduce_abs_inequalities -> reduce_piecewise_inequalities

Fixes sympy/sympy#10255

skirpichev added a commit to diofant/diofant that referenced this issue Dec 16, 2015

Support inequalities with piecewise functions
Renamed:
    reduce_abs_inequality -> reduce_piecewise_inequality
    reduce_abs_inequalities -> reduce_piecewise_inequalities

Fixes sympy/sympy#10255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment