Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

cases(...).subs(...) should not subs unmatched expressions #319

Closed
rwst opened this issue Mar 29, 2018 · 0 comments
Closed

cases(...).subs(...) should not subs unmatched expressions #319

rwst opened this issue Mar 29, 2018 · 0 comments
Labels

Comments

@rwst
Copy link
Member

rwst commented Mar 29, 2018

sage: cases(((m == -1, log(x)), (m != -1, x^(m + 1)/(m + 1))))
cases(((m == -1, log(x)), (m != -1, x^(m + 1)/(m + 1))))
sage: _.subs(m==-1)
...
ValueError: power::eval(): division by zero

While subs should substitute matched expressions, e.g., the above with .subs(m==1) should return 1/2*x^2, unmatched expressions in the list should not be touched.

@rwst rwst added the bug label Mar 29, 2018
@rwst rwst closed this as completed in 96a44d7 Mar 29, 2018
rwst added a commit to rwst/pynac that referenced this issue Mar 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant