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: [mg70263] Re: a simple product, but with "i = 1...n AND i != x"
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 10 Oct 2006 06:12:22 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <egcok5$je2$1@smc.vnet.net>

Hi,

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

??

Regards

  Jens

<xarnaudx at gmail.com> schrieb im Newsbeitrag 
news:egcok5$je2$1 at smc.vnet.net...
| 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"