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: a simple product, but with "i = 1...n AND i != x"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70249] RE: [mg70243] a simple product, but with "i = 1...n AND i != x"
  • From: "Jaccard Florian" <Florian.Jaccard at he-arc.ch>
  • Date: Tue, 10 Oct 2006 06:11:54 -0400 (EDT)

Is this what you want ?

f[x_] := Product[If[i != x, x - i, 1], {i, 1, n} ]

Regards

Florian Jaccard

 
-----Message d'origine-----
De : xarnaudx at gmail.com [mailto:xarnaudx at gmail.com] 
Envoyé : lundi, 9. octobre 2006 07:56
À : mathgroup at smc.vnet.net
Objet : [mg70243] a simple product, but with "i = 1...n AND i != x"

hi,
i would like to make a function like
f[x_] := Product[x - i, {i, 1, n} AND i != x}

obviously, the end of the expression is syntactically incorrect. But
how to rewrite this product correctly?
thanks


  • Prev by Date: Re: a simple product, but with "i = 1...n AND i != x"
  • Next by Date: Re: a simple product, but with "i = 1...n AND i != x"
  • Previous by thread: Re: a simple product, but with "i = 1...n AND i != x"
  • Next by thread: Re: a simple product, but with "i = 1...n AND i != x"