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

    Init Page

    x1=d/2; x2=-x1; dx1=(x-x1)/(n-1); dx2=(x-x2)/(n-1); for(int i=0;i<n;i++){ xp1[i]=x1+i*dx1; xp2[i]=x2+i*dx2; yp[i]=y1+i*dy; } xs[0]=x1; xs[1]=x2; xs[2]=x;

    Evol Page

    Indep. Var. Increment
    SolverRungeKutta AbsoluteTolerance=0.00001

    FixRel Page

    for(int i=0;i<n;i++){ dy2=(yp[i]-y1)*(yp[i]-y1); r1=Math.sqrt((xp1[i]-x1)*(xp1[i]-x1)+dy2); zp1[i]=h*Math.sin(k*r1-w*t); r2=Math.sqrt((xp2[i]-x2)*(xp2[i]-x2)+dy2); zp2[i]=h*Math.sin(k*r2-w*t); } c1=k*r1-w*t; c2=k*r2-w*t; a1=Math.sin(c1); a2=Math.sin(c2); zc=zmax*(a1+a2)*(a1+a2)/4.; //zc=zmax*Math.cos((c1-c2)/2)*Math.cos((c1-c2)/2); zs[0]=zp1[0]; zs[1]=zp2[0]; zs[2]=zp1[n-1]+zp2[n-1];
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double
    title="Frame"
    layout=border
    visible=true
    size="543,586"
    position=south
    layout=border
    position=east
    layout=HBOX
    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=d
    minimum=size
    maximum=xmax/2
    format="d=0.00"
    dragaction=_initialize()
    variable=x
    minimum=xmin
    maximum=xmax
    format="x=0.00"
    dragaction=_initialize()
    variable=wavelength
    minimum=size*2.5
    maximum=xmax
    format="lambda=0.00"
    dragaction=k=pi2/wavelength;
    position=center
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    minimumZ=zmin
    maximumZ=zmax
    projectionMode="PERSPECTIVE_ON"
    cameraAzimuth=-1.2900000000000007
    cameraAltitude=0.27000000000000013
    cameraFocusX=0.0
    cameraFocusY=0.0
    cameraFocusZ=0.0
    cameraRotation=0.0
    cameraDistanceToScreen=25.0
    background=GRAY
    x=x
    y=y
    z=z
    sizeX=size
    sizeY=size
    sizeZ=size
    x=xmin
    y=ymin
    z=0
    sizeX=xmax-xmin
    sizeY=0
    sizeZ=0
    x=x2
    y=y2
    z=z2
    sizeX=size
    sizeY=size
    sizeZ=size
    x=x1
    y=y1
    z=z1
    sizeX=size
    sizeY=size
    sizeZ=size
    xData=xp1
    yData=yp
    zData=zp1
    closed=false
    lineColor=0,0,255,128
    xData=xp2
    yData=yp
    zData=zp2
    closed=false
    lineColor=0,0,255,128
    numberOfElements=3
    x=xs
    y=ys
    z=0
    sizeX=0
    sizeY=0
    sizeZ=zs
    lineColor=RED
    fillColor=RED
    x=x+rc*Math.cos(c1)
    y=y
    z=zmax
    sizeX=0
    sizeY=0
    sizeZ=rc*a1
    lineColor=255,0,0,128
    lineWidth=stroke
    x=x
    y=y
    z=zmax
    sizeX=rc*Math.cos(c1)
    sizeY=0
    sizeZ=rc*Math.sin(c1)
    lineColor=255,0,0,192
    fillColor=255,0,0,192
    x=x
    y=y
    z=zmax
    sizeX=rc*Math.cos(c2)
    sizeY=0
    sizeZ=rc*Math.sin(c2)
    lineColor=0,255,0,192
    fillColor=0,255,0,192
    x=0
    y=y
    z=xmin
    sizeX=0
    sizeY=0
    sizeZ=xmax-xmin
    x=xmin
    y=y
    z=0
    sizeX=xmax-xmin
    sizeY=0
    sizeZ=0
    x=x1
    y=y1
    z=0
    sizeX=x-x1
    sizeY=y-y1
    sizeZ=0
    x=x
    y=y
    z=zc
    pixelSize=true
    sizeX=5
    sizeY=5
    sizeZ=5
    lineColor=BLACK
    fillColor=CYAN
    x=x2
    y=y2
    z=0
    sizeX=x-x2
    sizeY=y-y2
    sizeZ=0
    x=x+rc*Math.cos(c2)
    y=y
    z=zmax
    sizeX=0
    sizeY=0
    sizeZ=rc*a2
    lineColor=0,255,0,128
    lineWidth=stroke