RE: product formula in mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg68744] RE: [mg68702] product formula in mathematica
- From: Hartmut.Wolf at t-systems.com
- Date: Fri, 18 Aug 2006 03:11:44 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
>-----Original Message----- >From: frou [mailto:quantieny at gmail.com] To: mathgroup at smc.vnet.net >Subject: [mg68744] [mg68702] product formula in mathematica > >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. > >Thanks > (If necessary) to understand In[8]:= Product[f[x], {x, 1, 10, 3}] Out[8]= f[1] f[4] f[7] f[10] please look into Help. But perhaps you intend In[9]:= Times @@ f /@ {1, 3, 4, 9} Out[9]= f[1] f[3] f[4] f[9] -- Hartmut