MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

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. >>


  • Prev by Date: Re: Filtering a list of list for certain elements that are neighbours
  • Next by Date: Re: Filtering a list of list for certain elements that are neighbours
  • Previous by thread: Re: fails?
  • Next by thread: Re: Possible Bug Report: CoefficientList