# delayed feedback 1D neural network equation nn1delay.ode # declare all the parameters, initializing the delay to 3 param tau=0,w=1,th=0 # define the nonlinearity f(x)=1/(1+exp(-x)) # define the right-hand sides; delaying x by tau du/dt = -u + f(w*delay(u,tau)-th) u(0)=1-t init u=1 # plotting @ xp=t,yp=u,xlo=0,xhi=20,ylo=0,yhi=1 # set maxdelay @ delay=20 # done done