MathGroup Archive 2006

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

Search the Archive

Re: Product over an arbitrary index.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68742] Re: Product over an arbitrary index.
  • From: "Norbert Marxer" <marxer at mec.li>
  • Date: Thu, 17 Aug 2006 04:18:55 -0400 (EDT)
  • References: <ebujmf$6jo$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello

With your data

li1 = {1, 4, 3};
m = 3; li2 = Table[i, {i, 1, m}];

all you need is

Outer[f, li1, li2] /. List -> Times

Best Regards
Norbert Marxer
www.mec.li


quantieny at gmail.com wrote:
> 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?.
> 
> Thanks,
> K Frou


  • Prev by Date: Re: Product over an arbitrary index.
  • Next by Date: Re: distance function
  • Previous by thread: RE: Product over an arbitrary index.
  • Next by thread: Re: Product over an arbitrary index.