//Setup windowScaleWindow(-1,-3,tmax,3);DrawAxes(0,-3,tmax,3);
b=1;
t=0;
x=2;//Initial position
v=0;MoveTo(t, x);Colour("black");loop();//Loop window
x = x + v*dt;//This is the simulation
v = v + b*u*dt;
t = t + dt;LineTo(t, x);if(t<tmax){setTimeout("loop();",1000*dt);}