Education Prize Logo
Science SPORE Prize
November 2011

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

Lookup Table

Return to the EJS Modeling forum
Login to post to this thread

Lookup Table - Oct 4, 2013 at 3:59AM
Rosen Mitrev
3 Posts

Hello!
I want to know:
1. Is it possible to define in EJS relation between two variables as Lookup Table (as in Matlab)?
2. How to change a value of the constant when certain condition is met? For example:

IF time>5 THEN spring_constant=10 ELSE spring_constant=5

Where to find illustrating examples?

Thanks in advance

Rosen

Post edited October 4, 2013 at 4:00 AM EST.


Current Replies - View all
Re: Lookup Table   (Francisco Esquembre - Oct 04 2013 at 4:25AM)
Re: Re: Lookup Table   (Rosen Mitrev - Oct 04 2013 at 11:32AM)
Re: Re: Re: Lookup Table   (Francisco Esquembre - Nov 03 2013 at 3:03PM)
Re: Re: Re: Re: Lookup Ta...   (Rosen Mitrev - Nov 26 2013 at 1:31PM)
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics