Possible Bug Report: CoefficientList
- To: mathgroup at smc.vnet.net
- Subject: [mg88844] Possible Bug Report: CoefficientList
- From: anglewyrm at yahoo.com
- Date: Mon, 19 May 2008 05:15:48 -0400 (EDT)
Here is a function using CoefficientList[] that produces a list:
Chances[dice_, sides_] := CoefficientList[Expand[(Sum[x^i, {i,
sides}])^dice], x];
(* This works: *)
Chances[3, 6]
Chances[4,6]
Chances[5,6]
(* This fails: *)
Table[ Chances[x, 6], {x, 3, 5}]
CoefficientList::ivar: 1 is not a valid variable. >>
CoefficientList::ivar: 2 is not a valid variable. >>
CoefficientList::ivar: 3 is not a valid variable. >>
General::stop: Further output of CoefficientList::ivar will be
suppressed during this calculation. >>
- Follow-Ups:
- Re: Possible Bug Report: CoefficientList
- From: "W_Craig Carter" <ccarter@mit.edu>
- Re: Possible Bug Report: CoefficientList
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Possible Bug Report: CoefficientList