MathGroup Archive 2006

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

Search the Archive

RE: product formula in mathematica

If you want a Table with unevenly spaced values then you could have an
evenly spaced list index another list of values.

However, in such cases I always think MapThread in which you can specify the
list of values directly.

Times @@ MapThread[f[x[#]] &, {{1, 3, 4, 9}}]
f[x[1]] f[x[3]] f[x[4]] f[x[9]]

David Park
djmp at

From: frou [mailto:quantieny at]
To: mathgroup at

Hi I am interested in doing a product over a set of indices that are
not continuous
Product [ f(x_i) , { x_i, 1,3,4,9}]     Is this possible it appears
that the iterator wouldonly take sequences such as 1...10 etc.


  • Prev by Date: RE: product formula in mathematica
  • Next by Date: Re: calculate Recurrence Equations
  • Previous by thread: RE: product formula in mathematica
  • Next by thread: Re: product formula in mathematica