This is the web version of EJS interface
EJS version 4.2
  1. Author=Fu-Kwun Hwang - Dept. of Physics, National Taiwan Normal Univ.
  2. Abstract=hwang@phy.ntnu.edu.tw
  3. CaptureTools=true
  4. DataTools=true
  5. LanguageTools=true
    NameValueTypeDimension
    NameValueTypeDimension

    Evol Page

    Indep. Var. Increment
    d c /dt=omega
    d omega /dt=(m1-m2)*g*Math.abs(Math.sin(c))/ML-b*omega
    SolverRungeKuttaFehlberg AbsoluteTolerance=0.00001

    FixRel Page

    if(!remove){ c=0; omega=0; } cs=Math.cos(c); sc=Math.sin(c); x1=-L*cs; x2=-x1; y1=0.3*h-L*sc; y2=0.3*h+L*sc; if(h*Math.abs(sc)>size2/2){ if(c>0)c=size2/h/2; else c=-size2/h/2; omega=0; };

    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
    title="Frame"
    layout=border
    visible=true
    size="554,397"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    x=0
    y=0
    sizeX=w
    sizeY=h
    style=RECTANGLE
    fillColor=LIGHTGRAY
    lineWidth=stroke
    y=-0.1*h
    sizeX=size
    sizeY=0.8*h
    style=RECTANGLE
    lineColor=GRAY
    fillColor=GRAY
    xData=px
    yData=py
    y=0.3*h
    transformation=c
    x=x1
    y=y1
    sizeX=w2
    sizeY=h2
    transformation=c
    style=RECTANGLE
    elementposition=NORTH
    fillColor=null
    lineWidth=stroke
    x=x2
    y=y2
    sizeX=w2
    sizeY=h2
    transformation=c
    style=RECTANGLE
    elementposition=NORTH
    fillColor=null
    lineWidth=stroke
    x=x1
    y=y1
    sizeX=0
    sizeY=size
    transformation=c
    lineWidth=stroke*2
    x=x2
    y=y2
    sizeX=0
    sizeY=size
    transformation=c
    lineWidth=stroke*2
    x=-L
    y=-h/2
    sizeX=size
    sizeY=h3
    style=RECTANGLE
    elementposition=SOUTH
    fillColor=GRAY
    x=L
    y=-h/2
    sizeX=size
    sizeY=h3
    style=RECTANGLE
    elementposition=SOUTH
    fillColor=GRAY
    x=x1+h2*sc
    y=y1-h2*cs
    sizeX=wm
    sizeY=m1*size2
    transformation=c
    style=RECTANGLE
    elementposition=SOUTH
    x=x2+h2*sc
    y=y2-h2*cs
    sizeX=wm
    sizeY=size2*m2
    transformation=c
    style=RECTANGLE
    elementposition=SOUTH
    position=south
    layout=border
    position=east
    layout=GRID:0,1,0,0
    borderType=LOWERED_ETCHED
    variable=remove
    text="measure"
    action=if(remove){ h3=size2/2; }else{ h3=size2; c=0; omega=0; }
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    position=center
    layout=HBOX
    variable=m1
    value=9.998399999999998
    minimum=0.0
    maximum=12.0
    format="m1=0.0"
    ticks=25
    closest=true
    variable=m2
    value=9.998399999999998
    minimum=0.0
    maximum=12.0
    format="m2=0.0"
    ticks=25
    closest=true