This is the web version of EJS interface
EJS version 4.3.5
  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. AppletColSupport=false
  8. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension

    Evol Page

    Indep. Var. Increment
    SolverRungeKutta AbsoluteTolerance=0.00001

    FixRel Page

    if(t>Tmax)t-=Tmax;

    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,double
    title="Frame"
    layout=border
    visible=true
    size="618,415"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    points=npt
    min=xmin
    max=xmax
    variable="x"
    functionx="x"
    functiony="A*Math.sin(k*x-w*t)"
    javaSyntax=true
    lineColor=BLUE
    x=xmin
    y=0
    sizeX=xmax-xmin
    sizeY=0
    lineWidth=stroke
    x=xp
    y=A*Math.sin(k*xp-w*t)
    sizeX=size
    sizeY=size
    fillColor=LIGHTGRAY
    lineWidth=stroke
    position=south
    layout=border
    position=east
    layout=VBOX
    borderType=LOWERED_ETCHED
    variable=_isPaused
    textOn="play"
    imageOn=/org/opensourcephysics/resources/controls/images/play.gif
    actionOn=_play()
    textOff="pause"
    imageOff=/org/opensourcephysics/resources/controls/images/pause.gif
    actionOff=_pause()
    text="step"
    image="/org/opensourcephysics/resources/controls/images/stepforward.gif"
    action=_step()
    text="reset"
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    position=center
    layout=GRID:0,2,0,0
    variable=xp
    minimum=xmin
    maximum=xmax
    format="x=0.00"
    variable=t
    minimum=0.0
    maximum=Tmax
    variable=wavelength
    minimum=xmax/10
    maximum=xmax/2
    format="wavelength=0.00"
    dragaction=k=2*pi/wavelength
    variable=period
    minimum=0.1
    maximum=3.0
    format="period=0.00"
    dragaction=w=2*pi/period