Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6202 > unrolled thread
| Started by | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| First post | 2011-11-05 09:53 +0000 |
| Last post | 2011-11-05 09:53 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: bug in Mathematica? Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-05 09:53 +0000
| From | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| Date | 2011-11-05 09:53 +0000 |
| Subject | Re: bug in Mathematica? |
| Message-ID | <j9313n$abv$1@smc.vnet.net> |
This is clearly a rather nasty bug. To see it more clearly:
f[m_, k_] := Product[Binomial[m, j], {j, 1, k}]
For numerical m and k we get the correct answer:
f[10, 2]
450
For symbolic n and m we get nonsense:
In[7]:=
f[m, n] /. {m -> 10, n -> 2}
During evaluation of In[7]:= Power::infy:Infinite expression 1/0^2 encountered. >>
During evaluation of In[7]:= Infinity::indet:Indeterminate expression 0 ComplexInfinity encountered. >>
Out[7]=
Indeterminate
In particular:
f[m, m - 1]
0
f[m, m + 1]
(I^(m*(m + 5))*m*(m*BarnesG[1 - m])^m*BarnesG[2 - m]^(-m - 1))/
BarnesG[m + 3]
which is also nonsense, since
Binomial[n, n + 1]
0
Andrzej Kozlowski
On 4 Nov 2011, at 12:03, Hansruedi Widmer wrote:
> Hi Everyone
>
>
> The code
>
> Sum[Binomial[m, j], {j, 1, m - 1}]
>
> produces the correct value -2+2^m.
>
>
> But the code
>
> Product[Binomial[m, j], {j, 1, m - 1}]
>
> creates the wrong value of zero. Does anyone have an explanation for why
> this is happening?
>
>
> Thanks and best regards
>
> Hansrued Widmer
>
>
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web