The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

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

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


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

Current Replies - View all
Re: Lookup Table   (Francisco Esquembre - Oct 4, 2013 at 4:25AM)
Re: Re: Lookup Table   (Rosen Mitrev - Oct 4, 2013 at 11:32AM)
Re: Re: Re: Lookup Table   (Francisco Esquembre - Nov 3, 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