Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 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


  • Prev by Date: Re: perplexed by blank sequence in pattern replacement
  • Next by Date: Re: Several functions in a single 2D-plot
  • Previous by thread: Re: product formula in mathematica
  • Next by thread: Re: product formula in mathematica