mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.07k stars 205 forks source link

Sum Binomial produces weird results #266

Open sn6uv opened 9 years ago

sn6uv commented 9 years ago

Found:

>>> Sum[Binomial[n, k], {k, 0, n}]
$RecursionLimit::reclim: Recursion depth of 200 exceeded.
$Aborted

Expected:

2^n
GarkGarcia commented 4 years ago

Sum + Binomial doesn't error outs anymore, but it produces weird results:

In[1]:= Sum[Binomial[n, k], {k, 0, n}]
Out[1]= Piecewise[{{2 ^ n, Re[n] > 0 || Re[n] <= 0 && Re[n] > -1}, {Sum[Binomial[n, k], {k, 0, n}], True}}]