Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15677
| From | Peter Breitfeld <phbrf@t-online.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: ListCorrelate and Powers |
| Date | 2011-02-09 07:11 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iitenk$jle$1@smc.vnet.net> (permalink) |
| References | <iir4nq$6qd$1@smc.vnet.net> |
"Harvey P. Dale" wrote:
Try this:
revPower[x_,y_]:=y^x
ListCorrelate[{1,2,3,4},{a,b,c,d,e},{1,-1},Plus,revPower]
//Peter
> 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
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
--
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: ListCorrelate and Powers Peter Breitfeld <phbrf@t-online.de> - 2011-02-09 07:11 +0000
csiph-web