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

    Init Page

    t=0; for(int i=0;i<n;i++){ x[i]=xmin+(i+0.5)*dx; y[i]=y0; vy[i]=0; m[i]=i+1; d[i]=size*Math.sqrt(m[i]); }

    Evol Page

    Indep. Var. Increment
    d y[i] /dt=vy[i]
    d vy[i] /dt=-g+b*vy[i]*vy[i]/m[i]
    SolverRungeKuttaFehlberg AbsoluteTolerance=0.00001

    FixRel Page

    if(t>10)_pause();

    dvalue

    double dv; public double dvalue (double v) { if(v>0)dv=0.5; else if(v<0)dv=-0.5; else dv=0; return (int)(v*100+dv)/100.; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double
    title="Frame"
    layout=border
    visible=true
    location="0,1"
    size="931,630"
    position=south
    layout=border
    background=BLACK
    position=east
    layout=FLOW:center,0,0
    borderType=LOWERED_ETCHED
    image="_data/reset.gif"
    action=_reset()
    size="90,,35"
    image="_data/init.gif"
    action=_initialize()
    size="90,35"
    variable=_isPaused
    size="90,35"
    imageOn="_data/play.gif"
    actionOn=_play()
    imageOff="_data/pause.gif"
    actionOff=_pause()
    position=center
    layout=HBOX
    variable=b
    minimum=0.0
    maximum=1.0
    format="b=0.00"
    foreground=255,192,0
    variable=g
    minimum=0.0
    maximum=10.0
    format="g=0.00"
    foreground=255,192,0
    variable=scale
    minimum=1.0
    maximum=10.0
    format="scale=0.0"
    foreground=255,192,0
    variable=t
    format=" Time = 0.0"
    size="180,0"
    background=BLACK
    foreground=192,128,0
    font=Dialog,BOLD,19
    position=center
    layout=HBOX
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin*scale
    maximumX=xmax*scale
    minimumY=ymin*scale
    maximumY=ymax*scale
    square=true
    background=DARKGRAY
    numberOfElements=n
    x=x
    y=y
    sizeX=d
    sizeY=d
    lineColor=192,128,0
    fillColor=192,128,0
    elementnumber=n
    x=x
    y=y
    maxpoints=npt
    skippoints=10
    active=_isPlaying()
    norepeat=true
    connected=false
    color=CYAN
    stroke=2
    style=ELLIPSE
    markersize=2
    autoscaleX=true
    autoscaleY=true
    minimumX=0
    TRmessage="Terminal velocity F=mg-b*v^2"
    interiorBackground=128,192,0
    background=DARKGRAY
    foreground=192,255,0
    elementnumber=n
    x=t
    y=vy
    maxpoints=npt
    active=_isPlaying()
    norepeat=true
    connected=_isPlaying()
    color=128,0,0