This is the web version of EJS interface
EJS version 4.3.2
  1. Author=Fu-Kwun Hwang - Dept. of Physics,National Taiwan normal Univ.
  2. Abstract=http://www.phy.ntnu.edu.tw/ntnujava/ hwang@phy.ntnu.edu.tw
  3. CaptureTools=true
  4. DataTools=false
  5. LanguageTools=true
  6. EmersionSupport=false
  7. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    t=0; for(int i=0;i<n;i++){ c=i*dc; x[i]=y[i]=x1[i]=y1[i]=x2[i]=y2[i]=0; vx[i]=vx1[i]=vx2[i]=V*Math.cos(c); vy[i]=vy1[i]=vy2[i]=V*Math.sin(c); } /* _view.traceSet.clear(); _view.traceSet2.clear(); _view.traceSet3.clear(); */

    Evol Page

    Indep. Var. Increment
    d x[i] /dt=vx[i]
    d y[i] /dt=vy[i]
    d vy[i] /dt=-g
    d x1[i] /dt=vx1[i]
    d y1[i] /dt=vy1[i]
    d vx1[i] /dt=-k1*vx1[i]
    d vy1[i] /dt=-g-k1*vy1[i]
    d x2[i] /dt=vx2[i]
    d y2[i] /dt=vy2[i]
    d vx2[i] /dt=-k2*vx2[i]*Math.sqrt(vx2[i]*vx2[i]+vy2[i]*vy2[i])
    d vy2[i] /dt=-g-k2*vy2[i]*Math.sqrt(vx2[i]*vx2[i]+vy2[i]*vy2[i])
    SolverRungeKutta AbsoluteTolerance=0.00001

    FixRel Page

    if(y[n0]<ymin)_pause();
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double,double
    title="Frame"
    layout=border
    visible=true
    size="585,403"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin*scale
    maximumX=xmax*scale
    minimumY=ymin*scale
    maximumY=ymax*scale
    square=true
    background=LIGHTGRAY
    x=xmin
    y=0
    sizeX=xmax-xmin
    sizeY=0
    lineColor=CYAN
    elementnumber=n
    x=x2
    y=y2
    memory=ntrace
    memorycolor=255,255,0,128
    visible=s2
    active=_isPlaying()
    norepeat=true
    connected=t>dt
    color=YELLOW
    elementnumber=n
    x=x1
    y=y1
    memory=ntrace
    memorycolor=0,255,0,128
    visible=s1
    active=_isPlaying()
    norepeat=true
    connected=true
    color=GREEN
    elementnumber=n
    x=x
    y=y
    memory=ntrace
    memorycolor=0,0,255,128
    active=_isPlaying()
    norepeat=true
    connected=true
    color=BLUE
    position=south
    layout=border
    position=east
    layout=GRID:0,1,0,0
    borderType=LOWERED_ETCHED
    variable=_isPaused
    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/reset.gif
    action=_reset()
    position=center
    layout=HBOX
    variable=V
    minimum=0.0
    maximum=xmax*5
    format="V=0.0 m/s"
    action=_initialize()
    variable=s1
    text=""
    variable=k1
    minimum=0.0
    maximum=1.0
    format="k1=0.0"
    ticks=11
    closest=true
    enabled=s1
    action=_initialize()
    background=GREEN
    variable=s2
    text=""
    variable=k2
    minimum=0.0
    maximum=0.1
    format="k2=0.00"
    ticks=11
    closest=true
    enabled=s2
    action=_initialize()
    background=YELLOW
    position=east
    variable=scale
    minimum=1.0
    maximum=100.0
    format="s=0.0"
    orientation=VERTICAL