Re: ListConvolve Problem?
- To: mathgroup at smc.vnet.net
- Subject: [mg33372] Re: ListConvolve Problem?
- From: "Tom Hardy" <tomhardy at cox.rr.com>
- Date: Mon, 18 Mar 2002 00:18:50 -0500 (EST)
- References: <a71sif$ghd$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In[10]:=
a={1,1,1};
b={0.5,1,0.5};
ListConvolve[a, b, {1, -1}, 0]
Out[12]=
{0.5,1.5,2.,1.5,0.5}
"poonam" <poonam_pandey at hotmail.com> wrote in message
news:a71sif$ghd$1 at smc.vnet.net...
> The following is the outout for the listconvolve:
>
> In[1]:= ListConvolve[{1,1,1},{0.5,1,0.5}]
>
> Out[1]= {2.}
>
>
> whereas if i manually do a convolution with my pencil and paper,
> the answer should be
>
> Out = {0.5 , 1.5 , 2. , 1.5 , 0.5}
> the length of which is 5 elements, which is right according to
> convolution N1 + N2 - 1 .
>
> is this right ?
>
> or is there a problem in my interpretation of listConvolve?
>
> thanks
>