This is the web version of EJS interface
EJS version 4.1
  1. Title=Newton's First Law
  2. Author=Wolfgang Christain
  3. Keywords=mechanics
  4. Level=beginner
  5. Abstract=A very simple Ejs model that shows how properties are connected to variables.
  6. CaptureTools=true
  7. DataTools=true
  8. LanguageTools=true
  9. AuxiliaryFiles=./FirstLaw/;
  10. DetectedFiles=./FirstLaw/FirstLaw.html;./FirstLaw/FirstLawModel.html;
    NameValueTypeDimension
    NameValueTypeDimension
    Indep. Var. Increment
    d x /dt=vx
    d y /dt=vy
    SolverMidPointTolerance=0.001

    FixRel Page

    //x = x + vx*dt; //y = y + vy*dt; // t = t + dt; x = vx*t; y = vy*t; tmax = Math.max(t,tmax); // method to get the slider to remember the end max is the value // Xmax = Math.max(Xmax,Xmod) // tint = (int)(tmax/1);
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double
    title="Newtons First Law"
    layout=border
    visible=true
    location="194,12"
    size="360,384"
    position=center
    autoscaleX=autoscale
    autoscaleY=autoscale
    minimumX=-2
    maximumX=2
    minimumY=-2
    maximumY=2
    square=true
    BRmessage="time="+_format(t,"0.00")
    x=x
    y=y
    enabled=true
    x=x
    y=y
    sizex=vx
    sizey=vy
    enabled=true
    position=south
    layout=border
    borderType=LOWERED_ETCHED
    position=west
    layout=grid:1,3,0,0
    border=0,0,0,0
    variable=_isPaused
    tooltip=Starts and stops the simulation.
    imageOn=/org/opensourcephysics/resources/controls/images/play.gif
    actionOn=_play()
    imageOff=/org/opensourcephysics/resources/controls/images/pause.gif
    actionOff=_pause()
    image=/org/opensourcephysics/resources/controls/images/step.gif
    action=_step();
    tooltip=Steps the simulation.
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset();
    tooltip=Reseets the simulation.
    position=east
    variable=autoscale
    text="autoscale"
    position=center
    variable=t
    minimum=0.0
    maximum=tmax
    format="t =0.00"
    orientation=HORIZONTAL
    ticks=10
    closest=true
    enabled=true
    position=west
    layout=VBOX
    position=north
    variable=t
    format="t = 0.00"
    variable=x
    format="x = 0.00"
    variable=y
    format="y = 0.00"
    variable=vx
    format="vx = 0.00"
    variable=vy
    format="vy = 0.00"
    variable=dt
    format="dt = 0.00"
    position=east
    layout=VBOX
    visible=false
    position=center
    variable=tint
    format="tint = 0.00"
    position=north
    variable=tmax
    format="tmax = 0.00"