{"version":3,"sources":["webpack:///./src/components/physics/wave/Lesson.vue","webpack:///./src/components/physics/wave/Boxes.js","webpack:///src/components/physics/wave/Lesson.vue","webpack:///./src/components/physics/wave/Lesson.vue?ce67","webpack:///./src/components/physics/wave/Lesson.vue?121b","webpack:///./src/components/physics/wave/Lesson.vue?ae82"],"names":["ref","attrs","_v","_c","staticClass","staticRenderFns","_vm","Boxes","box1","_brd1$create","JXG","Options","board","minimizeReflow","text","highlight","fixed","cssStyle","image","polygon","line","point","curve","slider","showInfoBox","brd1","JSXGraph","initBoard","boundingbox","keepaspectratio","axis","ticks","grid","pan","enabled","zoom","showCopyright","showNavigation","options","layer","makeResponsive","placeTitle","amplitud","placeSlider","setAttribute","snapWidth","frec","time1","unitLabel","create","x","Value","Math","cos","PI","valueOf","dash","strokeColor","strokeWidth","yPoints","point1","placePoint","point2","point3","point4","point5","point6","point7","point8","point9","point10","point11","point12","point13","point14","point15","point16","point17","point18","point19","X","_defineProperty","abs","visible","highlightStrokeWidth","lastArrow","type","size","highlightSize","touchLastPoint","firstArrow","toFixed","anchorX","anchorY","CssStyle","fontSize","round","canvasWidth","start","startAnimation","playImg","pauseImg","pause","stopAnimation","on","setLabel","label","offset","this","unsuspendUpdate","name","created","_this","$store","commit","title","newTopics","img","action","goto","newshowhome","newPhys","newLeftArrow","newModule","mounted","MathJax","Hub","Queue","metaInfo","titleTemplate","meta","content","component"],"mappings":"mJAA4D,EAAU,W,IAAgBA,EAAI,KAAK,EAAK,EAAI,S,OAA6S,iBAAK,IAAK,MAA6/CC,GAAK,GAAC,qS,IAAC,MAAU,89CAAE,MAAMC,CAAkGD,GAAM,Q,CAAmB,kEAAiB,oBAAE,OAAIE,eAAS,GAACC,iBAAY,K,CAAyB,QAAK,CAAS,8BAAG,MAAM,CAAkEA,kBAAyB,OAAO,0DAAqC,kBAAE,MAAK,CAAKA,6CAC/xE,QACGC,6CAAmCC,EAAI,gDAAI,QAAiB,EAAmBJ,Y,IAAgDD,EAAM,K,EAA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A,yBAAAC,GACA,KAAAF,OAAAC,OAAA,wBAAAC,GACA,IAAAC,EAAA,CACA,CAAAD,MAAA,kBAAAE,IAAA,uBAAAC,OAAA,kBAAAN,EAAAO,KAAA,QACA,CAAAJ,MAAA,qBAAAE,IAAA,uBAAAC,OAAA,kBAAAN,EAAAO,KAAA,QACA,CAAAJ,MAAA,YAAAE,IAAA,uBAAAC,OAAA,kBAAAN,EAAAO,KAAA,QACA,CAAAJ,MAAA,aAAAE,IAAA,uBAAAC,OAAA,kBAAAN,EAAAO,KAAA,QACA,CAAAJ,MAAA,YAAAE,IAAA,uBAAAC,OAAA,kBAAAN,EAAAO,KAAA,QACA,CAAAJ,MAAA,aAAAE,IAAA,oBAAAC,OAAA,kBAAAN,EAAAO,KAAA,gBAEA,KAAAN,OAAAC,OAAA,2BAAAE,GACA,IAAAI,GAAA,EACA,KAAAP,OAAAC,OAAA,4BAAAM,GACA,IAAAC,GAAA,EACA,KAAAR,OAAAC,OAAA,yBAAAO,GACA,IAAAC,GAAA,EACA,KAAAT,OAAAC,OAAA,8BAAAQ,GACA,IAAAC,GAAA,EACA,KAAAV,OAAAC,OAAA,2BAAAS,IAEAC,QAAA,WACAC,QAAAC,IAAAC,MAAA,WAAAF,QAAAC,MACAvH,EAAAC,QAEAwH,SAAA,WACA,OAAAb,MAAA,oBACAc,cAAA,2BACAC,KAAA,EAAApB,KAAA,WAAAqB,QAAA,uCACA,CAAArB,KAAA,cAAAqB,QAAA,2DC/F8W,I,wBCQ1WC,EAAY,eACd,EACA,EACA/H,GACA,EACA,KACA,KACA,MAIa,aAAA+H,E,oECnBf","file":"js/chunk-49f4953a.691ad074.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h3',{ref:\"ia\"},[_vm._v(\"\\n Waves\\n \")]),_c('p',[_vm._v(\"\\n We are all familiar with waves. Sea waves, ripples of wave when\\n a stone is thrown into water etc. are some of the everyday examples\\n of waves that we see everyday. Now we will look at the mathematical description\\n of waves.\\n \")]),_c('h3',{ref:\"ja\"},[_vm._v(\"\\n Governing Equation\\n \")]),_c('p',[_vm._v(\"\\n Mathematically, a function \\\\(y=f(x,t)\\\\) is called a wave function if it\\n satisfies the following differential equation:\\n $$\\\\frac{\\\\partial^2 y}{\\\\partial x^2}=\\\\frac{1}{c^2}\\\\frac{\\\\partial^2y}{\\\\partial t^2}$$\\n As you would've realized there are many functions which satisfy\\n the above differential equation. The simplest of these is the sinusoidal wave function.\\n The general form of the sinusoidal wave function is:\\n $$y=A \\\\sin(\\\\omega t+kx+\\\\phi)$$\\n Here, \\\\(\\\\omega\\\\) is called the \\\"angular frequency\\\" and \\\\(k\\\\) is called the \\\"wave number\\\".\\n \")]),_c('h3',[_vm._v(\"Amplitude \\\\((A)\\\\)\")]),_c('p',[_vm._v(\"Amplitude is the maximum value of the wave function. It is usually represented by \\\\(A\\\\).\")]),_c('h3',[_vm._v(\"Frequency \\\\((\\\\nu)\\\\)\")]),_c('p',[_vm._v(\"\\n The number of oscillations per second is called the frequency of a wave.\\n The frequency is related to the angular frequency as follows:\\n $$\\\\omega=2\\\\pi \\\\nu$$\\n \")]),_c('h3',[_vm._v(\" Wavlength \\\\((\\\\lambda)\\\\)\")]),_c('p',[_vm._v(\"\\n The distance between two consecutive troughs or crests is called the wavelength.\\n It is related to the wave number as follows:\\n $$k=\\\\frac{2\\\\pi}{\\\\lambda}$$\\n \")]),_vm._m(0),_c('h3',[_vm._v(\"Time Period\")]),_c('p',[_vm._v(\"\\n The time taken by a wave to generate one wavelength is called the time period.\\n The time period of a sinusoidal wave is:\\n $$T=\\\\frac{2\\\\pi}{\\\\omega}$$\\n \")]),_c('h3',{attrs:{\"id\":\"mgk\"}},[_vm._v(\"\\n MagicGraph | Wave Travelling through a Medium\\n \")]),_c('v-responsive',[_c('v-layout',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('div',{staticClass:\"edliy-box-about\",attrs:{\"id\":\"jxgbox1\"}})]),_c('h5',[_vm._v(\" Liked this MagicGraph? Follow this link \"),_c('a',{staticClass:\"icn\",attrs:{\"href\":\"https://edliy.com/physics/wavet#mgk\"}},[_c('i',{staticClass:\"fa fa-external-link-square\"})]),_vm._v(\" to explore more MagicGraphs on waves.\")])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_vm._v(\"\\n The following diagram from \"),_c('a',{attrs:{\"href\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Sine_wavelength.svg/1200px-Sine_wavelength.svg.png\"}},[_vm._v(\"Wikipedia\")]),_vm._v(\" shows\\n the wavelength\\n \")])\n}]\n\nexport { render, staticRenderFns }","// Import the edliy_utils\r\nimport {\r\n makeResponsive,\r\n placeTitle,\r\n placeImage,\r\n placeInput,\r\n placeSlider,\r\n hoverMe,\r\n placeRec,\r\n hiddenPt,\r\n fixedPt,\r\n clearInputFields,\r\n dragMe,\r\n placeArrow,\r\n placeGravity,\r\n placeText,\r\n placeLine,\r\n placePoint,\r\n placeGlider,\r\n placeRuler,\r\n placeLeftText,\r\n placeSliderSwitch\r\n} from '../../../common/edliy_utils-integral';\r\nconst Boxes = {\r\nbox1: function () {\r\n JXG.Options.board.minimizeReflow = 'none';\r\n JXG.Options.text.highlight =false;\r\n JXG.Options.text.fixed =true;\r\n JXG.Options.text.highlight =false;\r\n JXG.Options.text.cssStyle='fontFamily:Oswald',\r\n JXG.Options.image.highlight =false;\r\n JXG.Options.polygon.highlight =false;\r\n JXG.Options.line.highlight =false;\r\n JXG.Options.point.highlight =false;\r\n JXG.Options.curve.highlight =false;\r\n JXG.Options.slider.highlight =false;\r\n JXG.Options.point.showInfoBox =false;\r\n var brd1 = JXG.JSXGraph.initBoard('jxgbox1',{boundingbox: [-10, 11, 10, -9],keepaspectratio: true, axis:false, ticks:false, grid:true, pan:{enabled:false}, zoom:{enabled:false}, showCopyright:false, showNavigation:false});\r\n brd1.options.layer['line'] =2;\r\n brd1.options.layer['polygon'] =2;\r\n brd1.options.layer['image'] =8;\r\n makeResponsive(brd1);\r\n // Creat titleStyle\r\n placeTitle(brd1, 'Amplitude of a Travelling Wave', 'y= A cos(k x - w t)');\r\n //SLiders\r\n var amplitud = placeSlider(brd1, -2, 7.5, 1, 2, 5, 4, ' A');\r\n amplitud.setAttribute({snapWidth:1});\r\n //brd1.create('slider',[[5,7],[8,7],[-5,2,5]], {snapToGrid: false ,face:'square', size:4, strokeWidth: 2, name:'A', strokeColor:'black', fillColor: 'grey', label:{fontSize:function(){return 18*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});\r\n\r\n //var frec = placeSlider(brd1, 5, 7, 0, 0.25, 1, 3, ' f');\r\n //frec.setAttribute({visible:false, highline:{visible:false}, baseline:{visible:false}});\r\n var frec=0.25;\r\n //brd1.create('slider',[[5,7],[8,7],[0,0.2,1]], {visible: false, snapToGrid: false ,face:'square', size:4, strokeWidth: 2, name:'f', strokeColor:'black', fillColor: 'grey', label:{fontSize:function(){return 18*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});\r\n //var phi = brd1.create('slider',[[5,6],[8,6],[-10,0,10]], {visible: false, snapToGrid: false ,face:'square', size:4, strokeWidth: 2, name:'φ', strokeColor:'black', fillColor: 'grey', label:{fontSize:function(){return 18*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});\r\n\r\n var time1 =placeSlider(brd1, -4, -8, 0, 0, 10, 8, ' t');\r\n time1.setAttribute({unitLabel:'sec'});\r\n //brd1.create('slider',[[-7,-5],[7,-5],[0,0,10]], {visible: false, snapToGrid: false ,face:'square', size:6, strokeWidth:0,\r\n //name:'t', strokeColor:'black', fillColor: 'grey', label:{fontSize:function(){return 20*brd1.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});\r\n //Graph\r\n var graph = brd1.create('functiongraph',\r\n [function(x){ return amplitud.Value()*Math.cos(2*Math.PI*frec.valueOf()*(time1.Value() - x));}, -10, 10],\r\n {dash: 0, strokeColor: 'blue', strokeWidth: 1}\r\n );\r\n\r\n\r\n //Points\r\n function yPoints(x){return amplitud.Value()*Math.cos(2*Math.PI*frec.valueOf()*(time1.Value() - x ))}\r\n\r\n var point1 = placePoint(brd1, -9, function(){return yPoints(-9)}, 3, 'yellow', 'black');\r\n var point2 = placePoint(brd1, -8, function(){return yPoints(-8)}, 3, 'yellow', 'black');\r\n var point3 = placePoint(brd1, -7, function(){return yPoints(-7)}, 3, 'yellow', 'black');\r\n var point4 =placePoint(brd1, -6, function(){return yPoints(-6)}, 3, 'yellow', 'black');\r\n var point5 =placePoint(brd1, -5, function(){return yPoints(-5)}, 3, 'yellow', 'black');\r\n var point6 =placePoint(brd1, -4, function(){return yPoints(-4)}, 3, 'yellow', 'black');\r\n var point7 =placePoint(brd1, -3, function(){return yPoints(-3)}, 3, 'yellow', 'black');\r\n var point8 =placePoint(brd1, -2, function(){return yPoints(-2)}, 3, 'yellow', 'black');\r\n var point9 =placePoint(brd1, -1, function(){return yPoints(-1)}, 3, 'yellow', 'black');\r\n var point10 =placePoint(brd1, -0, function(){return yPoints(-0)}, 3, 'yellow', 'black');\r\n var point11 =placePoint(brd1, 1, function(){return yPoints(1)}, 3, 'yellow', 'black');\r\n var point12 =placePoint(brd1, 2, function(){return yPoints(2)}, 3, 'yellow', 'black');\r\n var point13 =placePoint(brd1, 3, function(){return yPoints(3)}, 3, 'yellow', 'black');\r\n var point14 =placePoint(brd1, 4, function(){return yPoints(4)}, 3, 'yellow', 'black');\r\n var point15 =placePoint(brd1, 5, function(){return yPoints(5)}, 3, 'yellow', 'black');\r\n var point16 =placePoint(brd1, 6, function(){return yPoints(6)}, 3, 'yellow', 'black');\r\n var point17 =placePoint(brd1, 7, function(){return yPoints(7)}, 3, 'yellow', 'black');\r\n var point18 =placePoint(brd1, 8, function(){return yPoints(8)}, 3, 'yellow', 'black');\r\n var point19 =placePoint(brd1, 9, function(){return yPoints(9)}, 3, 'yellow', 'black');\r\n //brd1.create('point', [-9 ,function(){return yPoints(-9)}],{face:'o' , name:'pp', size:3, strokeColor: 'black', fillColor:'yellow', withLabel:false, fixed:false, visible:true, label:{fontSize:function(){return 18*brd4.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});;\r\n //var point2 = brd1.create('point', [-8 ,function(){return yPoints(-8)}],{face:'o' , name:'pp', size:3, strokeColor: 'black', fillColor:'yellow', withLabel:false, fixed:false, visible:true, label:{fontSize:function(){return 18*brd4.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});;\r\n //var point3 = brd1.create('point', [-7 ,function(){return yPoints(-7)}],{face:'o' , name:'pp', size:3, strokeColor: 'black', fillColor:'yellow', withLabel:false, fixed:false, visible:true, label:{fontSize:function(){return 18*brd4.canvasHeight/800}, cssStyle:'fontFamily:Oswald'}});;\r\n var segment1 = brd1.create('segment', [[function(){return point1.X()}, 0], point1], {dash: 1, dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment2 = brd1.create('segment', [[function(){return point2.X()}, 0], point2], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment3 = brd1.create('segment', [[function(){return point3.X()}, 0], point3], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment4 = brd1.create('segment', [[function(){return point4.X()}, 0], point4], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment5 = brd1.create('segment', [[function(){return point5.X()}, 0], point5], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment6 = brd1.create('segment', [[function(){return point6.X()}, 0], point6], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment7 = brd1.create('segment', [[function(){return point7.X()}, 0], point7], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment8 = brd1.create('segment', [[function(){return point8.X()}, 0], point8], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment9 = brd1.create('segment', [[function(){return point9.X()}, 0], point9], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment10 = brd1.create('segment', [[function(){return point10.X()}, 0], point10], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment11 = brd1.create('segment', [[function(){return point11.X()}, 0], point11], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment12 = brd1.create('segment', [[function(){return point12.X()}, 0], point12], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment13 = brd1.create('segment', [[function(){return point13.X()}, 0], point13], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment14 = brd1.create('segment', [[function(){return point14.X()}, 0], point14], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment15 = brd1.create('segment', [[function(){return point15.X()}, 0], point15], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment16 = brd1.create('segment', [[function(){return point16.X()}, 0], point16], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment17 = brd1.create('segment', [[function(){return point17.X()}, 0], point17], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment18 = brd1.create('segment', [[function(){return point18.X()}, 0], point18], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n var segment19 = brd1.create('segment', [[function(){return point19.X()}, 0], point19], {dash: 1, fixed: true, strokeColor: 'black', strokeWidth:1});\r\n\r\n // var txt1 = brd1.create('text', [ function(){return point11.X()+ 0.8}, function(){return point11.Y()/2}, function(){return 'A: ' + point11.Y().toFixed(2)}],{visible: true, fixed: true, anchorX: 'middle', anchorY: 'middle', CssStyle:'fontFamily:Oswald',fontSize:function(){return Math.round(10*brd1.canvasWidth/500.)}},);\r\n\r\n //Lambda\r\n\r\n var lambdaSeg = brd1.create('segment', [[0, function(){return Math.abs(amplitud.Value()) +1}],[function(){return 1/frec.valueOf()}, function(){return Math.abs(amplitud.Value()) +1}]], {fixed: true, strokeColor: 'black', visible:true, strokeWidth:1,\r\n highlightStrokeWidth: 2,\r\n lastArrow: {type: 2, size: 8, highlightSize: 6},\r\n touchLastPoint: false,\r\n firstArrow: {type: 2, size: 8}\r\n });\r\n\r\n var lambdaTxt = brd1.create('text', [function(){return 1/frec.valueOf()/2 }, function(){return Math.abs(amplitud.Value()) +1.5}, function(){ return ' λ = ' + (1/frec.valueOf()).toFixed(0) }],{fixed: true, anchorX: 'middle', anchorY: 'middle', CssStyle:'fontFamily:Oswald',fontSize:function(){return Math.round(12*brd1.canvasWidth/500.)}},);\r\n\r\n\r\n //Animation\r\n function start(){\r\n time1.startAnimation(10, 500, 30);\r\n playImg.setAttribute({visible: false});\r\n pauseImg.setAttribute({visible: true});\r\n\r\n }\r\n\r\n function pause(){\r\n time1.stopAnimation(10, 500, 30);\r\n playImg.setAttribute({visible: true});\r\n pauseImg.setAttribute({visible: false});\r\n\r\n }\r\n //Play Button\r\n var playImg = brd1.create('image', ['/assets/play.svg', [-0.8, -6], [1.5, 1.5]], {visible: true, fixed: true});\r\n playImg.on('up', start);\r\n playImg.setLabel('Play')\r\n playImg.label.setAttribute({visible:false, offset:[15, -15], CssStyle:'fontFamily:Oswald', fontSize:16});\r\n playImg.on('over', function () {this.label.setAttribute({visible:true});});\r\n playImg.on('out', function () {this.label.setAttribute({visible:false});});\r\n //Pause Button\r\n var pauseImg = brd1.create('image', ['/assets/pause.svg', [-0.8, -6], [1.5, 1.5]], {visible: false, fixed: true});\r\n pauseImg.on('up', pause);\r\n pauseImg.setLabel('pause')\r\n pauseImg.label.setAttribute({visible:false, offset:[15, -15], CssStyle:'fontFamily:Oswald', fontSize:16});\r\n pauseImg.on('over', function () {this.label.setAttribute({visible:true});});\r\n pauseImg.on('out', function () {this.label.setAttribute({visible:false});});\r\n brd1.unsuspendUpdate();\r\n }\r\n }\r\nexport default Boxes;\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Lesson.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Lesson.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Lesson.vue?vue&type=template&id=49d373ce&\"\nimport script from \"./Lesson.vue?vue&type=script&lang=js&\"\nexport * from \"./Lesson.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Lesson.vue?vue&type=style&index=0&id=49d373ce&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Lesson.vue?vue&type=style&index=0&id=49d373ce&prod&lang=scss&\""],"sourceRoot":""}