0
$\begingroup$

Why is this code returning errors and failing to run? If I replace Abs[x[t]]^2 with just x[t] it works perfectly.

proc = ItoProcess[{
    \[DifferentialD]x[t] == y[t] \[DifferentialD]t,
    \[DifferentialD]y[t] == -Abs[x[t]]^2 \[DifferentialD]t + \[DifferentialD]W[t]},
   {x[t], y[t]},
   {{x, y}, {0, 1}},
   t,
   W \[Distributed] WienerProcess[0, 1]
   ];
sim = RandomFunction[proc, {0., 20., 0.01}];
ListPlot[sim, Joined -> True]
$\endgroup$
0
$\begingroup$

After playing around some more, I suppose it is something to do with the system tending towards negative infinity. If I only plot up to a time step of 5 (RandomFunction[proc, {0., 5., 0.01}]) then the result looks like this

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.