MathGroup Archive 2004

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

Search the Archive

Differential Equation with Random Noise Input


I'm having trouble debugging this code.

<<Statistics`NormalDistribution`
<<Statistics`MultiDescriptiveStatistics`
Res=1;
Cap=.1;
time=2;
input[x_]:=Random[NormalDistribution[0,1]]
listinput=Table[input[x/sample],{x,0,time*sample}]
inputfun=Interpolation[listinput];
result=NDSolve[{Res*Cap*V'[t]+V[t]==inputfun[t],V[0]==0},V,{t,0,time}]

This should be solving the differential equation using Gaussian white
noise as the input, but I get the error:

InterpolatingFunction::dmval: Input value {0.} lies outside the range of
data in the interpolating function. Extrapolation will be used.

Thanks in advance for any help.


  • Prev by Date: No More Memory Available??
  • Next by Date: Re: Exporting a found maximum to a variable: GOT IT !
  • Previous by thread: No More Memory Available??
  • Next by thread: Re: Differential Equation with Random Noise Input