This is the web version of EJS interface
EJS version 4.3.7
  1. Author=Fu-Kwun Hwang - Professor
  2. Abstract=http://www.phy.ntnu.edu.tw/ntujava/
  3. CaptureTools=false
  4. DataTools=false
  5. LanguageTools=false
  6. EmersionSupport=false
  7. AppletColSupport=false
  8. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension

    初始值

    for(int i=1;i<n;i++){ c[i]=2*pi*Math.random(); }

    關係式

    x[0]=y[0]=0; for(int i=1;i<n;i++){ x[i]=R*Math.cos(c[i]); y[i]=R*Math.sin(c[i]); x2[i]=R2*Math.cos(c[i]); y2[i]=R2*Math.sin(c[i]); x[0]-=x[i]; y[0]-=y[i]; } force=(int)(10*Math.sqrt(x[0]*x[0]+y[0]*y[0]))/10.; forcec=(int)(Math.atan2(x[0],y[0])*180/pi); info="Missing force: magnitude "+ force+":"+", angle in degree="+forcec; show[0]=check;
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    int,double
    title="Frame"
    layout=border
    visible=true
    location="-3,128"
    size="536,470"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    x=x
    y=y
    sizeX=2*R
    sizeY=2*R
    lineColor=BLUE
    fillColor=null
    drawingLines=stroke
    numberOfElements=n
    x=0
    y=0
    sizeX=x
    sizeY=y
    visible=show
    enabledSize=ENABLED_ANY
    elementSelected=id
    dragAction=c[id]=Math.atan2(y[id],x[id]); x[id]=R*Math.cos(c[id]); y[id]=R*Math.sin(c[id]); cta=c[id]*180/pi;
    numberOfElements=n
    x=x2
    y=y2
    pixelSize=true
    visible=show
    text=%s%
    y=xmax*0.95
    pixelSize=true
    visible=check
    text=%info%
    position=south
    layout=HBOX
    borderType=LOWERED_ETCHED
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    variable=id
    minimum=1
    maximum=n-1
    format="id=0"
    variable=cta
    minimum=0.0
    maximum=360
    format="cta=0"
    dragaction=c[id]=cta*pi/180.;
    variable=check
    text="answer"