This is the web version of EJS interface
EJS version 4.3.7
  1. Author=Lee Tat Leong - Ministry of Education
  2. Abstract=tatlee08@gmail.com,
  3. CaptureTools=false
  4. DataTools=false
  5. LanguageTools=false
  6. AppletColSupport=false
  7. UseMacMenuBar=false
  8. UseInterpreter=true
  9. DetectedFiles=./sky.jpg;./stickman.png;
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    enable = true; manVy = 0; manDragVy = 0;

    Evol Page

    Indep. Var. Increment
    d manY /dt=manVy
    d manVy /dt=(0.5*k1*manVy*manVy-manM*g)/manM
    d manDragY /dt=manDragVy
    d manDragVy /dt=(0.5*k2*manDragVy*manDragVy-manM*g)/manM
    SolverFehlberg8 AbsoluteTolerance=0.00001

    Name:Event,active=true,條件:Method:BISECTION,(誤差範圍1.0e-5),stopatEvent=true
    return manY-2*ymin;


    動作
    _pause(); enable = false;

    Name:Event 2,active=true,條件:Method:BISECTION,(誤差範圍1.0e-5),stopatEvent=true
    return manY-manDragY;


    動作
    _pause();

    FixRel Page

    k1=1.2*2*0.7; k2=1.2*2*(0.7*Math.cos(rotAng*Math.PI/180)-0.08*Math.sin(rotAng*Math.PI/180)); manF=0.5*k1*manVy*manVy; manAy=(0.5*k1*manVy*manVy-manM*g)/manM; manDragF=0.5*k2*manDragVy*manDragVy; manDragAy=(0.5*k2*manDragVy*manDragVy-manM*g)/manM;
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double
    title="Frame"
    layout=border
    visible=true
    location="9,35"
    size="700,700"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    size="300,0"
    x=0
    y=0
    sizeX=range
    sizeY=2*range
    scaley=2
    imageFile="./sky.jpg"
    x=xmin/4
    y=manY+25
    sizeX=50
    sizeY=10
    visible=_isPaused()
    text="Skydiver 1"
    x=xmin/4
    y=manY
    sizeX=size
    sizeY=size
    transformation=90
    imageFile="./stickman.png"
    x=xmax/4
    y=manDragY+25
    sizeX=50
    sizeY=10
    visible=_isPaused()
    text="Skydiver 2"
    x=xmax/4
    y=manDragY
    sizeX=size
    sizeY=size
    transformation=(90-rotAng)*Math.PI/180
    imageFile="./stickman.png"
    x=xmin/4
    y=manY
    sizeX=0
    sizeY=-manM*g/25
    lineColor=GRAY
    fillColor=GRAY
    lineWidth=3
    x=xmin/4
    y=manY
    sizeX=0
    sizeY=manF/25
    lineColor=red
    fillColor=red
    lineWidth=3
    x=xmin/4-25
    y=manY
    sizeX=0
    sizeY=manAy
    lineColor=red
    fillColor=red
    x=xmin/4-25
    y=manY+5*manAy/g
    sizeX=0
    sizeY=manAy
    lineColor=red
    fillColor=red
    x=xmax/4
    y=manDragY
    sizeX=0
    sizeY=-manM*g/25
    lineColor=GRAY
    fillColor=GRAY
    lineWidth=3
    x=xmax/4
    y=manDragY
    sizeX=0
    sizeY=manDragF/25
    lineColor=RED
    fillColor=RED
    lineWidth=3
    x=xmax/4+25
    y=manDragY
    sizeX=0
    sizeY=manDragAy
    lineColor=red
    fillColor=red
    x=xmax/4+25
    y=manDragY+5*manAy/g
    sizeX=0
    sizeY=manDragAy
    lineColor=red
    fillColor=red
    position=south
    layout=FLOW:center,0,0
    borderType=LOWERED_ETCHED
    text=" Adjust angle of skydiver 2 "
    variable=rotAng
    value=0
    minimum=-90
    maximum=0
    variable=_isPaused
    enabled=enable
    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/forward.gif"
    enabled=enable
    action=_step()
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    position=east
    layout=border
    size="400,650"
    position=north
    autoscaleX=true
    autoscaleY=true
    minimumX=0
    minimumY=0
    title="displacement - time graph"
    titleX="time"
    titleY="displacement"
    size="400,250"
    x=t
    y=-manY
    norepeat=true
    connected=true
    x=t
    y=-manDragY
    norepeat=true
    connected=true
    color=RED
    position=center
    autoscaleX=true
    autoscaleY=true
    minimumX=0
    minimumY=0
    title="velocity - time graph"
    titleX="time"
    titleY="velocity"
    size="400,250"
    x=t
    y=-manVy
    norepeat=true
    connected=true
    x=t
    y=-manDragVy
    norepeat=true
    connected=true
    color=RED
    position=south
    autoscaleX=true
    autoscaleY=false
    minimumX=0
    minimumY=0
    maximumY=12
    title="acceleration - time graph"
    titleX="time"
    titleY="acceleration"
    size="400,150"
    x=t
    y=-manAy
    norepeat=true
    connected=true
    x=t
    y=-manDragAy
    norepeat=true
    connected=true
    color=RED