Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15601 > unrolled thread

Re: ListCorrelate and Powers

Started byOliver Ruebenkoenig <ruebenko@wolfram.com>
First post2011-02-09 07:11 +0000
Last post2011-02-09 07:11 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: ListCorrelate and Powers Oliver Ruebenkoenig <ruebenko@wolfram.com> - 2011-02-09 07:11 +0000

#15601 — Re: ListCorrelate and Powers

FromOliver Ruebenkoenig <ruebenko@wolfram.com>
Date2011-02-09 07:11 +0000
SubjectRe: ListCorrelate and Powers
Message-ID<iitem6$jkb$1@smc.vnet.net>
On Tue, 8 Feb 2011, Harvey P. Dale wrote:

> It is easy to use ListCorrelate to generate the sum of a list
> with each element multiplied by the successive terms in the "kernel."
> For example, ListCorrelate[{1,2,3,4},{a,b,c,d,e}] produces {a+2 b+3 c+4
> d,b+2 c+3 d+4 e}.  Is there any way, using the optional 5th and 6th
> parameters, to generate this list instead:
> {a+b^2+c^3+d^4,b+c^2+d^3+e^4}?
> Thanks.
> Harvey


Harvey,

you could use this

ListCorrelate[{1, 2, 3, 4}, {a, b, c, d, e}, {1, -1}, 0, f, g]

ListCorrelate[{1, 2, 3, 4}, {a, b, c, d, e}, {1, -1}, 0,
  Power[#2, #1] &, g]

ListCorrelate[{1, 2, 3, 4}, {a, b, c, d, e}, {1, -1}, 0,
  Power[#2, #1] &]

Hth,
Oliver

>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web