This is the web version of EJS interface
EJS version 4.3.0
  1. CaptureTools=false
  2. DataTools=false
  3. LanguageTools=false
  4. EmersionSupport=true
  5. UseInterpreter=true
  6. AuxiliaryFiles=_data/tiger.gif;_data/step.gif;_data/init.gif;_data/reset.gif;
  7. DetectedFiles=_data/init.gif;_data/reset.gif;_data/tiger.gif;
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    x=xmin/2; xs=x; vs=v; t=0; for(int i=0;i<n;i++){ xt[0]=x; vt[i]=0; at[i]=0; } id=0;

    Evol Page

    Indep. Var. Increment
    d x /dt=v
    d v /dt=a
    SolverMidPoint AbsoluteTolerance=0.001
    if(drag){ y=0; id++; if(id>=n){ for(int i=0;i<nf-1;i++){ vt[i]=vt[n-nf+1]; at[i]=at[n-nf+1]; } id=nf; } xt[id]=x; v=vt[id]=(x-xs)/dt;//(x-xt[id-1])/dt; xs=x; a=at[id]=(v-vs)/dt;//(v-vt[id-1])/dt; vs=v; if(filter && nf>0){ v=a=0; if(id<nf){ i0=0; }else{ i0=id-nf; } for(int i=i0;i<id;i++){ v+=vt[i]; a+=at[i]; } v=v/id; a=a/id; } }
    if(v<0)sign=-1; else sign=1;
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double
    title="Frame"
    layout=border
    visible=true
    location="105,-11"
    size="700,602"
    position=center
    layout=border
    position=center
    layout=GRID:0,1,0,0
    background=DARKGRAY
    position=center
    autoscaleX=true
    autoscaleY=true
    titleY="x(t)"
    TRmessage="x-t"
    interiorBackground=128,192,0
    foreground=CYAN
    x=t
    y=x
    memory=ntrace
    memorycolor=GRAY
    maxpoints=npt
    norepeat=true
    connected=true
    color=128,0,255
    stroke=stroke
    autoscaleX=true
    autoscaleY=true
    TRmessage="v-t"
    interiorBackground=128,192,0
    foreground=CYAN
    x=t
    y=v
    memory=ntrace
    memorycolor=MAGENTA
    maxpoints=npt
    norepeat=true
    connected=true
    color=255,192,0
    autoscaleX=true
    autoscaleY=true
    TRmessage="a-t"
    interiorBackground=128,192,0
    foreground=CYAN
    x=t
    y=a
    memory=ntrace
    memorycolor=CYAN
    maxpoints=npt
    norepeat=true
    connected=true
    color=MAGENTA
    stroke=stroke
    position=north
    layout=border
    position=center
    autoscaleX=true
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    x=mx
    y=my
    size="0,50"
    background=BLACK
    x=x
    y=y
    sizeX=sign*size2
    sizeY=size
    enabledPosition=true
    pressAction=drag=true;
    dragAction=t=t+dt;
    releaseAction=drag=false;
    imageFile="_data/tiger.gif"
    position=south
    layout=HBOX
    background=BLACK
    foreground=192,128,0
    position=center
    variable=t
    format= "time = 0.0"
    background=BLACK
    foreground=192,128,0
    font=Dialog,BOLD,18
    position=south
    layout=BORDER:0,0
    background=BLACK
    position=center
    layout=HBOX
    foreground=192,255,0
    variable=a
    minimum=-2.0
    maximum=2.0
    format="a=0.0 m/s^2"
    ticks=21
    closest=true
    enabled=!drag && _isPaused()
    variable=v
    minimum=xmin/2
    maximum=xmax/2
    format="v=0.0 m/s"
    enabled=_isPaused()
    position=east
    layout=GRID:0,1,0,0
    position=east
    layout=FLOW:left,0,0
    position=center
    layout=FLOW:left,0,0
    position=center
    variable=filter
    text="filter"
    foreground=CYAN
    variable=nf
    format="0"
    action=if(nf<0)nf=0; else if(nf>n/10)nf=n/10;
    columns=2
    foreground=CYAN
    position=east
    image="_data/init.gif"
    action=_initialize()
    size="90,35"
    position=west
    image="_data/reset.gif"
    action=_reset()
    size="90,35"
    layout=HBOX
    position=center
    variable=_isPaused
    font=Dialog,BOLD,15
    textOn="Accelerate"
    actionOn=_play()
    foreground=128,255,0
    background=DARKGRAY
    textOff="Pause"
    actionOff=_pause()
    foregroundOff=128,255,0
    backgroundOff=DARKGRAY
    position=east
    text="Step"
    enabled=_isPaused()
    action=_step()
    background=DARKGRAY
    foreground=128,255,0
    font=Dialog,BOLD,15