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

do not use `has` to test against self.variables when factoring Sum #10156

Closed
smichr opened this Issue Nov 19, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@smichr
Copy link
Member

smichr commented Nov 19, 2015

>>> c = Sum(x,(x,1,2))
>>> (c*Sum(x, (x, 1, 3))).doit()
18
>>> (Sum(c*x, (x, 1, 3))).doit()
18
>>> (Sum(c*x, (x, 1, 3))).factor()
Sum(x*Sum(x, (x, 1, 2)), (x, 1, 3))  <--- should be Sum(x, (x, 1, 2))*Sum(x, (x, 1, 3))

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 16, 2016

sympy/sympy#10156: do not use has when testing overlap of variables i…
…n Sum

Also modify polytools/_symbolic_factor_list to only use
_eval_factor *once* per arg.

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

Do not use has when testing overlap of variables in Sum
Also modify polytools/_symbolic_factor_list to only use
_eval_factor *once* per arg.

Closes sympy/sympy#10156

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

Do not use has when testing overlap of variables in Sum
Also modify polytools/_symbolic_factor_list to only use
_eval_factor *once* per arg.

Closes sympy/sympy#10156

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment