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