This is the web version of EJS interface
EJS version 4.1
  1. CaptureTools=false
  2. DataTools=false
  3. LanguageTools=true
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Evol Page

    s_vx ="y = "+double2String(A,100.)+"*{x^2} + "+double2String(B,100.)+"*x +"+double2String(C,100.) ; // to make display 2.30=vx instead of 2.3000000001
    Array
    zero=0.; if(A==0){ xp1=xp2=-C/B; yp1=yp2=C; }else{ xp1=xp=-B/(2*A); yp1=yp=(4*A*C-B*B)/(4*A); } title="y = "; if(A!=0)title+=dvalue(A)+"*x^{2} "; if(B!=0){ if(A!=0 && B>0)s="+"; else if(B<0)s=""; title+=s+dvalue(B)+"*x"; } if(C<0)s=""; else if(A!=0 || B!=0)s="+"; else s=""; if(C!=0 || (A==0 && B==0))title+=s+dvalue(C); size1=size*scale;
    double dv1; public String double2String(double v,double divider){ if(v>0)dv1=0.5; else if(v<0)dv1=-0.5; else dv1=0; return (int)(v*divider+dv1)/divider+""; } // this code has to do with displaying the number 2.3 instead of 2.300000001 when using % %
    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.; // change the 100 to get the coorect decimal place }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double
    title=Frame
    layout=border
    visible=true
    size="1024,695"
    layout=border
    position=west
    layout=border
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    title=Graph of Quadratic Equation: y = {A*x^2} + B*x +C
    axesType=Cartesian3
    titleX=%xlabel%
    titleY=%ylabel%
    min=xmin*scale
    max=xmax*scale
    variable=x
    functionx=x
    functiony=A*x*x + B*x + C
    javaSyntax=true
    color=BLUE
    stroke=2
    enabled=false
    enabled=true
    text=%title%
    elementposition=SOUTH_EAST
    color=BLUE
    font=Dialog,BOLD,16
    x=xp
    y=yp
    sizex=size1
    sizey=size1
    visible=A!=0
    enabled=true
    pressaction=dragp=true;
    dragaction=B=-2*A*xp; //formula for turing point dy/dx C=yp+B*B/(4*A);//what is the maths here
    action=dragp=false;
    secondaryColor=red
    color=red
    position=south
    layout=vbox
    layout=grid:1,2,0,0
    variable=A
    minimum=-Arange
    maximum=Arange
    orientation=HORIZONTAL
    ticks=2*(int)Arange+1
    closest=true
    variable=A
    format=A = 0.00
    font=Dialog,BOLD,16
    layout=grid:1,2,0,0
    variable=B
    minimum=-Brange
    maximum=Brange
    ticks=2*(int)(Brange)+1
    closest=true
    variable=B
    format=B = 0.00
    font=Dialog,BOLD,16
    layout=grid:1,2,0,0
    variable=C
    minimum=-Crange
    maximum=Crange
    ticks=2*(int)Crange+1
    closest=true
    variable=C
    format=C = 0.00
    font=Dialog,BOLD,16
    text=credits
    mnemonic=c
    text=Applet by: Wee Loo Kang (August 2007) version 3
    image=http://www.moe.gov.sg/etd/images/etd_homepage.jpg
    alignment=LEFT
    action=_alert("Easy Java Simulations","Wee Loo Kang","http://www.moe.gov.sg/edumall/tl/digital_resources/physics.htm")
    text=forum on Easy Java Simulation: Fu-Kwun Hwang
    alignment=LEFT
    action=_alert("Easy Java Simulations","Fu-Kwun Hwang","http://www.phy.ntnu.edu.tw/ntnujava/index.php")
    text=Author EasyJavaSimulation : Francisco Esquembre
    alignment=LEFT
    action=_alert("Easy Java Simulations","Francisco Esquembre","http://www.um.es/fem/Ejs/")
    text=help
    mnemonic=h
    text="use the slider bars to control the variables A , B and C"
    text="in the applet, move mouse to plotting panel and right click for many options, including zoom scale increase fonts etc."