The Open Source Physics website will be unavailable on Saturday, August 1 due to network maintenance at the American Center for Physics.

Education Prize Logo
Science SPORE Prize
November 2011

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

Modeling Tips & Help post and replies

Return to the Modeling Tips & Help thread
Login to post to this thread

Mathematical Function Use in ODEs??? - Jun 22, 2010 at 2:35PM
Nolan Nicholas
1 Posts

Does anyone know if it is possible to use named functions (e.g. sine) in the ODE "evolution"?  

[I want to simulate a "particle on a hoop" under the influence of a separate external force field.]

Replies to Mathematical Function Use in ODEs???

Re: Mathematical Function Use in ODEs??? - Jul 03 2010 12:33PM
Vasudeva Rao Aravind
3 Posts

Yes. For example if you want to say that dx/dt is sin(w*t), your command should read


Hope it helps.

Re: Mathematical Function Use in ODEs??? - Jul 23 2010 4:17PM
86 Posts

The OSP parser within EJS can be used used to compute the ODE rate.  See how this is done in the Barrier Scattering model.

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics