"sum" is not specific enough a keyword to filter down the discussions. None 
of the titles of the "Mathematically incorrect answers" list on Trac are 
obviously about this issue, but is it new?

Code:

s, n, x, y, t = var('s, n, x, y, t')
print(sum(binomial(n,s) * (x+y)^s * x^(n-s), s, 0, n))
print(sum(binomial(n,s) * (x+1)^s * x^(n-s), s, 0, n))

Observed in version 9.4 using sagecell.sagemath.org:

(2*x + y)^n
(2*x)^n

Expected:

(2*x + y)^n
(2*x + 1)^n

Link to 
reproduce: 
https://sagecell.sagemath.org/?z=eJyFjEEKg0AQBO-Cf-ibM2Yi-gC_IqxBwkJ2Ijsq6-9dghcPklM3TVWbe09N8PZqRqc6xTOIy6IsTKCCJNgFC3psLlJ1GasfN0evC9kaaPT6Dd59SMUYNSg9dh4stzSQPo0F2W_zBfMfr7vzDlIMMqI=&lang=sage&interacts=eJyLjgUAARUAuQ==

Regards,
Peter Taylor

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5936f5ad-848e-46bc-b123-8f521b61c4edn%40googlegroups.com.

Reply via email to