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.

Lookup Table

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

Lookup Table
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 - )
Re: Re: Lookup Table   (Rosen Mitrev - )
Re: Re: Re: Lookup Table   (Francisco Esquembre - )
Re: Re: Re: Re: Lookup Ta...   (Rosen Mitrev - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book