APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Is there a stepback routine? post and replies

Return to the Is there a stepback routine? thread
Login to post to this thread

Is there a stepback routine?
Klaus-Dieter Grueninger
2 Posts

In the old applet based physlets there was a step(forward) and a stepback routine.
I am missing that to a certain extend in EJsS.

If a user doesn't hit the run/pause button in time and the simulation has advanced beyond that point, there doesn't seem to be a possiblity to go back one step.

Maybe there is and I just haven't discovered it yet.

I have written lots of Physlets during he last ten years. When I started it was like learning how to ride a bike, in the end I got to know how to drive a big truck ;-)
Now my aim is ocean liner but I am afraid I am still at rowing boat level ;-)

Perhaps someone can give me a hint.

Replies to Is there a stepback routine?

Re: Is there a stepback routine? -
146 Posts

What we did in Physlets was to set dt = - dt and then perform a single evolution step using the ODE solver or the analytic solution.  You can do more of less the same in the JavaScript version of EJS provided the the Evolution code is reversible.

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book