MathGroup Archive 2006

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

Search the Archive

Re: Product over an arbitrary index.


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.