MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Convolution



Larry Gottlob wrote:
 
> I define two functions:
> 
> Func1[x_] := tau*Exp(-x)
> Func2[x_] := mu*x^2
> 
> for instance, where tau and mu are constants.
> 
> How do I define a function of x that is a convolution of Func1 and
> Func2, and plot that?


Func1[x_] := tau*Exp[-x]
Func2[x_] := mu*x^2


h[x_]= Integrate[Func1[s] Func2[x-s],{s,0,x}]

(note use of = , not := , so that the integration is done at this stage
and not for every sample point in the plotting below)

In[142]:=
Plot[h[x]/.{tau ->2, mu->3},{x,0,5}] -- 
Allan Hayes
Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642




  • Prev by Date: Can Mathematica help me?
  • Next by Date: Re: choose with replacement
  • Prev by thread: Re: Convolution
  • Next by thread: Convolution?