<![CDATA[spring (k=9 N/m) - Mass (m=1 kg) model x0=0, v0 =6 x vs t]]> false false false false false false false true true false ]]> ./SHM11/2016-05-30_0944s.png ./1authorlookangphoto5050.png DESCRIPTION_EDITOR SHM08 true false _default_ SHM08 true 20 1 false VARIABLE_EDITOR Var Table true false VARIABLE_EDITOR layout true false VARIABLE_EDITOR simplespring true false VARIABLE_EDITOR advancedspring true false VARIABLE_EDITOR max true false VARIABLE_EDITOR functionY true false CODE_EDITOR Init Page true false 0) { pointA = x; for (var counter=0; counter CODE_EDITOR functionY true false CODE_EDITOR axes true false CODE_EDITOR undefined true false CODE_EDITOR SVG true false '+ ' '+ ' '+ ' '+ ' '+ ''; container.innerHTML = svggradient; document.body.appendChild(container); //"url(#mygrandient)" ]]> ODE_EDITOR Evol Page true false EVENT_EDITOR Event true false CROSSING_EVENT BISECTION 100 true t dt vx -k/m*(x-l) - b*vx/m + externalForce(t)/m RungeKutta 10000 0.00001 false false false false CODE_EDITOR FixRel Page true false CODE_EDITOR FixRel Page 2 true false 0){ pointB =-Math.max(pointA,Math.abs(x-l)); tpointB = t; counterB = counterB+1; tarraypointB[counterB] = t; arraypointB[counterB]=pointB; // textB[counterB] = "B"+counterB ; textB[counterB] = "B"; } // else T1[nc]=t*2.;// first half period vxstored = vx; // to store value of omega ]]> CODE_EDITOR FixRel Page 3 true false CODE_EDITOR axes true false LIBRARY_EDITOR Lib Page true false LIBRARY_EDITOR changeOrientation true false LIBRARY_EDITOR android true false -1; //&& ua.indexOf("mobile"); } ]]> LIBRARY_EDITOR fullscreen true false HTML_VIEW_EDITOR HtmlView Page true false 0 0 0 800 600 true true Elements.Panel true Elements.Panel false Elements.PlottingPanel Elements.Shape2D Elements.Shape2D Elements.Shape2D Elements.Shape2D Elements.Shape2D Elements.Shape2D =2) x = 2; //selected[0]="user_defined"; _view.comboBox.setSelectedOptions(["user defined"]);]]> Elements.Shape2D false Elements.Group2D Elements.Arrow2D Elements.Text2D Elements.Text2D Elements.Text2D Elements.Text2D Elements.Arrow2D Elements.Text2D Elements.Arrow2D Elements.Text2D Elements.Text2D Elements.Spring2D Elements.Spring2D Elements.Arrow2D Elements.Shape2D false Elements.Group2D Elements.Arrow2D Elements.Shape2D false Elements.Group2D Elements.Text2D false Elements.Group2D Elements.Text2D Elements.Text2D false Elements.PlottingPanel Elements.AnalyticCurve2D Elements.Trail2D 0]]> 0]]> Elements.Shape2D false Elements.Group2D Elements.Arrow2D Elements.Text2D Elements.Text2D Elements.TextSet2D Elements.TextSet2D Elements.Text2D Elements.Text2D Elements.Trail2D 0]]> 0]]> Elements.Shape2D Elements.Trail2D 0]]> 0]]> Elements.Shape2D Elements.Text2D Elements.Text2D Elements.Arrow2D Elements.Arrow2D true Elements.Panel Elements.ComboBox 0)? opts[0]:""; // selected option if ( option=="user defined"){ } //printing begins else if (option == "print"){ print = true; } //printing ends else if ( option=="shm_with_xo=-2"){ x=-2; vx=0; } else if ( option=="shm_with_xo=-1"){ x=-1; vx=0; } else if ( option=="shm_with_xo=1"){ x=1; vx=0; } else if ( option=="shm_with_xo=0,vo=2"){ x=0; vx=2; } else if ( option=="shm_with_xo=1,vo=1"){ x=1; vx=1; } else if ( option=="shm_with_xo=2"){ x=2; vx=0; } else if ( option=="no_damping,b=0.0"){ b=0; } else if ( option=="light_damping,b=0.1"){ b=0.1; } else if ( option=="critical_damping,b=2.0"){ b=2.0; } else if ( option=="heavy_damping,b=5.0"){ b=5.0; } else if ( option=="driving_force,fdriver=0.05"){ x=0; amplitude=1.0; Hertz = 0.05; } else if ( option=="driving_force,fdriver=0.1"){ x=0; amplitude=0.5; Hertz = 0.1; } else if ( option=="driving_force,fdriver=0.159,resonance"){ x=0; amplitude=0.5; Hertz = 1.0/(2*pi); } else if ( option=="driving_force,fdriver=0.2"){ x=0; amplitude=0.5; Hertz = 0.2; } else if ( option=="driving_force,fdriver=0.3"){ x=0; amplitude=0.5; Hertz = 0.3; } else if ( option=="driving_force,fdriver=0.4"){ amplitude=0.5; Hertz = 0.4; } else if ( option=="driving_force,fdriver=0.5"){ x=0; amplitude=0.5; Hertz = 0.5; } else if ( option=="driving_force,fdriver=0.6"){ amplitude=0.5; Hertz = 0.6; } else if ( option=="driving_force,fdriver=0.7"){ x=0; amplitude=0.5; Hertz = 0.7; } else if ( option=="driving_force,fdriver=1.0"){ x=0; amplitude=0.5; Hertz = 1.0; } else if ( option=="driving_force,fdriver=2.0"){ x=0; amplitude=0.5; Hertz = 2.0; } else if ( option=="driving_force,fdriver=4.0"){ amplitude=0.5; Hertz = 4.0; } else if ( option=="driving_force,fdriver=6.0"){ amplitude=0.5; Hertz = 6.0; } else if ( option=="driving_force,fdriver=8.0"){ x=0; amplitude=0.5; Hertz = 8.0; } else if ( option=="driving_force,fdriver=10.0"){ x=0; amplitude=0.5; Hertz = 10.0; } else if ( option=="driving_force,fdriver=12.0"){ x=0; amplitude=0.5; Hertz = 12.0; } ]]> Elements.ComboBox 0)? opts[0]:""; // selected option if ( option=="world"){ world=true; Width1 = "100%"; Width2 = "0%"; } //print here else if (option == "print"){ print = true; } //print ends else if ( option=="graph only"){ world=false; graph=true; Width1 = "0%"; Width2 = "100%"; } else if ( option=="x vs t"){ xvst=true; graph=true; } else if (option == "x vs t off") { xvst = false; graph = true; } else if ( option=="v vs t"){ vvst=true; graph=true; } else if (option == "v vs t off") { vvst = false; graph = true; } else if ( option=="a vs t"){ avst=true; graph=true; } else if (option == "a vs t off") { avst = false; graph = true; } else if ( option=="both"){ world=true; graph=true; Width1 = "50%"; Width2 = "50%"; } else if ( option=="show model"){ showmodel=true; } else if ( option=="hide model"){ showmodel=false; } ]]> Elements.TwoStateButton Elements.Button Elements.Button Elements.Label Elements.ComboBox 0)? opts[0]:""; // selected option showmodel=true; functionY=option+""; if (option=="show me"){ functionY= +_view._format(Acalculated,"0.0")+"*sin(" +_view._format(w,"0.00")+"*t+("+_view._format(phi,"0.00")+"))"; } //("+_view._format(Acalculated,"0.0")+")*("+_view._format(w,"0.00")+")*cos(" +_view._format(w,"0.00")+"*t+("+_view._format(phi,"0.00")+"))" if (option=="show me v"){ functionY= "("+_view._format(Acalculated,"0.0")+")*("+_view._format(w,"0.00")+")*cos(" +_view._format(w,"0.00")+"*t+("+_view._format(phi,"0.00")+"))"; } if (option=="show me a"){ functionY= "-("+_view._format(Acalculated,"0.0")+")*("+_view._format(w,"0.00")+")*("+_view._format(w,"0.00")+")*sin(" +_view._format(w,"0.00")+"*t+("+_view._format(phi,"0.00")+"))"; } xmodel=_view.fField.evaluate({ t : t, x : xmodel }); _view._update(); ]]> Elements.Function