Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15847
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!weretis.net!feeder4.news.weretis.net!newsfeed.straub-nv.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!news.stupi.se!newsfeeds.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Bob Hanlon <hanlonr@cox.net> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: ListCorrelate and Powers |
| Date | Wed, 9 Feb 2011 07:11:24 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <iitems$jkt$1@smc.vnet.net> (permalink) |
| Lines | 32 |
| NNTP-Posting-Date | 09 Feb 2011 07:15:17 GMT |
| NNTP-Posting-Host | 490af432.news.twtelecom.net |
| X-Trace | DXC==@>=mYke8mJVS1USibAf`FC_A=>8kQj6M9BHNOcEA\@IX8TgmOfj?eKEFiONJ7[GoFhH?K]M=<S;B |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:15847 |
Show key headers only | View raw
ListCorrelate[{1, 2, 3, 4}, {a, b, c, d, e},
1, 1, Power[#2, #1] &, Plus][[{1, 2}]]
{a + b^2 + c^3 + d^4, b + c^2 + d^3 + e^4}
Bob Hanlon
---- "Harvey P. Dale" <hpd1@nyu.edu> 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
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
Bob Hanlon
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: ListCorrelate and Powers Bob Hanlon <hanlonr@cox.net> - 2011-02-09 07:11 +0000
csiph-web