Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6190 > unrolled thread

bug in Mathematica?

Started by"Hansruedi Widmer" <widmer@baden.ch>
First post2011-11-04 11:14 +0000
Last post2011-11-05 09:55 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  bug in Mathematica? "Hansruedi Widmer" <widmer@baden.ch> - 2011-11-04 11:14 +0000
    Re: bug in Mathematica? David Reiss <dbreiss@gmail.com> - 2011-11-05 09:52 +0000
    Re: bug in Mathematica? "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-11-05 09:55 +0000

#6190 — bug in Mathematica?

From"Hansruedi Widmer" <widmer@baden.ch>
Date2011-11-04 11:14 +0000
Subjectbug in Mathematica?
Message-ID<j90hep$sp5$1@smc.vnet.net>
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



[toc] | [next] | [standalone]


#6199

FromDavid Reiss <dbreiss@gmail.com>
Date2011-11-05 09:52 +0000
Message-ID<j9310r$ab5$1@smc.vnet.net>
In reply to#6190
Appears to be a bug.


On Nov 4, 7:14 am, "Hansruedi Widmer" <wid...@baden.ch> 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

[toc] | [prev] | [next] | [standalone]


#6204

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2011-11-05 09:55 +0000
Message-ID<j9315k$ach$1@smc.vnet.net>
In reply to#6190
"Hansruedi Widmer" <widmer@baden.ch> schrieb im Newsbeitrag 
news:j90hep$sp5$1@smc.vnet.net...
> 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
>
>
>
>
I don't see a zero, my version simply does not evaluate the product in 
symbolic form.
But the values are ok:
(Product[Binomial[#1, j], {j, 1, #1 - 1}] & ) /@ Range[10]

{1, 2, 9, 96, 2500, 162000, 26471025, 11014635520,
11759522374656, 32406091200000000}

Hope this helps
Best regards,
Wolfgang

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web