Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

RE: Product over an arbitrary index.

  • To: mathgroup at
  • Subject: [mg68696] RE: [mg68683] Product over an arbitrary index.
  • From: "David Park" <djmp at>
  • Date: Thu, 17 Aug 2006 04:17:54 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

How do indexes enter into your expression? Do you mean f[i,j]? What exactly
is the definition of your product? Do you mean something like the following,
where I have set m = 5?

Times @@ Flatten[Outer[f[#1, #2] &, {1, 4, 3}, Range[5]]]
f[1, 1] f[1, 2] f[1, 3] f[1, 4] f[1, 5] f[3, 1] f[3, 2] f[3, 3] f[3, 4] f[3,
    5] f[4, 1] f[4, 2] f[4, 3] f[4, 4] f[4, 5]

The answer to the second question is yes, but it would be helpful if you
gave a specific example.

David Park
djmp at

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

I have a function f(x,y)   that I would like to compute the product
over indices i,j
where i goes from an arbitrary list {1,4,3}  and j goes 1 to m.

Is this possible in mathematica the function Product itself seems to
only work over a continous sequence and it is not clear how I can use
two set of indices.

Additionally can I specify the product over an intersection or
complement of a list?.

K Frou

  • Prev by Date: product formula in mathematica
  • Next by Date: Re: ContourPlot and finite approximation to level sets
  • Previous by thread: Re: Product over an arbitrary index.
  • Next by thread: Re: Product over an arbitrary index.