All published worksheets from http://sagenb.org
Image: ubuntu2004
This worksheet implements the Euler-Maruyama method for SDEs (see http://en.wikipedia.org/wiki/Euler-Maruyama_method for more details) and presents an interactive demo of a simple dynamical system exhibiting a Hopf bifurcation with noise (taken from http://johncarlosbaez.wordpress.com/2010/12/24/this-weeks-finds-week-308/).
Other uses of the Euler-Maruyama method can be found in the Sage interact/diffeq demo. In fact, this worksheet was heavily inspired by that demo.
The interactive demo allows you to control the parameter (determining the limit cycle) and the amplitude of the noise . When the noise is absent (), the origin is a stable fixed point when . As becomes positive, the origin turns into an unstable fixed point and a stable limit cycle is born at .
When noise is added to the system, the limit cycle can still be discerned for .
For those of us schooled in classical ODEs, it is worth keeping in mind that these trajectories are continuous but not differentiable. The EM solver computes only a finite number of points on each trajectory and then plots a straight line between the individual points, giving the appearance of a curve which is "somewhat smooth" for large step sizes. The step size can of course be lowered, revealing the intricate features of the trajectories at the expense of longer computations.
|