{"version":3,"sources":["webpack:///./src/components/mathematics/Math12thGrade/probt2/Lesson.vue?2f54","webpack:///./src/components/mathematics/Math12thGrade/probt2/Lesson.vue","webpack:///./src/components/mathematics/Math12thGrade/probt2/Boxes.js","webpack:///src/components/mathematics/Math12thGrade/probt2/Lesson.vue","webpack:///./src/components/mathematics/Math12thGrade/probt2/Lesson.vue?59d1","webpack:///./src/components/mathematics/Math12thGrade/probt2/Lesson.vue?902e"],"names":["ref","staticClass","attrs","_c","_vm","_self","staticRenderFns","Boxes","box1","JXG","Options","board","minimizeReflow","brd2","createSpace","options","image","highlight","opacity","text","placeLogo","makeResponsive","placeTitle","create","display","fontSize","canvasHeight","cssStyle","fixed","sum","setLabel","label","setAttribute","visible","offset","CssStyle","on","this","player","shadow","rotate","i","j","cnt","tup","k","m","vis","ind","Value","anchorX","run","n","img","nme","ini","suspendUpdate","txt1","txt2","txt3","txt4","txt5","txt6","txt7","txt8","removeObject","unsuspendUpdate","dice","name","toFixed","update","color","magicGraph","document","querySelector","inputFields","querySelectorAll","onEachPress","event","forEach","field","addEventListener","created","_this","$store","commit","newTopics","title","action","goto","newMath","newshowhome","newLeftArrow","newModule","mounted","MathJax","Hub","Queue","metaInfo","titleTemplate","meta","content","component"],"mappings":"uIAAA,W,qECA4D,EAAU,W,IAAgBA,EAAI,KAAQ,EAAK,EAAI,S,OAA4CC,QAAY,SAAO,IAAK,SAAosBD,GAAI,8CAAM,YAAS,QAA0DA,GAAI,ksBAAS,IAAK,OAAqEA,GAAI,0DAAQ,IAAK,UAAsGC,oDAAY,gBAAO,IAAK,SAA+OC,GAAK,GAAC,iG,YAAC,QAAmB,8NAAE,MAAK,CAAOD,iBAAY,K,CAAyB,QAAK,CAAS,8BAAG,MAAM,CACx/C,mBACyC,IAAC,IAAqB,EAAc,Y,IAACA,OAAmB,EAAK,EAAI,SAC1G,OAAC,MAAW,CAAC,YAAY,QAACE,CAAE,EAACC,GAAIC,qPAAQ,waAAC,W,IAAeJ,OAAmB,EA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AAAC,OAAAC,OAAA,yBAEA,KAAAD,OAAAC,OAAA,8CACA,KAAAD,OAAAC,OAAA,6CACA,IAAAC,EAAA,CACA,CAAAC,MAAA,uBAAAlC,IAAA,uBAAAmC,OAAA,kBAAAL,EAAAM,KAAA,WACA,CAAAF,MAAA,gCAAAlC,IAAA,uBAAAmC,OAAA,kBAAAL,EAAAM,KAAA,SACA,CAAAF,MAAA,iCAAAlC,IAAA,uBAAAmC,OAAA,kBAAAL,EAAAM,KAAA,YACA,CAAAF,MAAA,uCAAAlC,IAAA,oBAAAmC,OAAA,kBAAAL,EAAAM,KAAA,YAEA,KAAAL,OAAAC,OAAA,2BAAAC,GACA,IAAAI,GAAA,EACA,KAAAN,OAAAC,OAAA,yBAAAK,GACA,IAAAC,GAAA,EACA,KAAAP,OAAAC,OAAA,4BAAAM,GACA,IAAAC,GAAA,EACA,KAAAR,OAAAC,OAAA,8BAAAO,GACA,IAAAC,GAAA,EACA,KAAAT,OAAAC,OAAA,2BAAAQ,IAEAC,QAAA,WACAC,QAAAC,IAAAC,MAAA,WAAAF,QAAAC,MACAzF,EAAAC,QAEA0F,SAAA,WACA,OAAAX,MAAA,qBACAY,cAAA,2BACAC,KAAA,EAAAhC,KAAA,WAAAiC,QAAA,uCACA,CAAAjC,KAAA,cAAAiC,QAAA,wDCvH6X,I,wBCQzXC,EAAY,eACd,EACA,EACAhG,GACA,EACA,KACA,KACA,MAIa,aAAAgG,E","file":"js/chunk-cbc774ee.5e743dbe.js","sourcesContent":["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=caf0fc16&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h3',{ref:\"intro\"},[_vm._v(\"\\n What is Probability?\\n \")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n Probability, stated in simple terms, is a way to determine how likely (or unlikely) any given event is.\\n The concept of probability is useful when dealing with random experiments that can yield multiple outcomes.\\n For example you can think of rolling of a dice as a random experiment that can yield six possible outcomes — 1, 2, 3, 4, 5 or 6.\\n Numerically, the probability of getting a given outcome is expressed by a number between 0 and 1.\\n The higher the probability of a given event, the greater the likelihood of happening of that event.\\n Probability of 0 implies that the outcome is unlikely while a probability of 1 implies that the outcome is certain.\\n \")]),_c('h3',{ref:\"sol\"},[_vm._v(\"\\n Probability of an Event\\n \")]),_vm._m(0),_c('h3',{ref:\"nature\"},[_vm._v(\"\\n Probability of Multiple Events\\n \")]),_vm._m(1),_c('h3',{ref:\"graph\"},[_vm._v(\"\\n MagicGraph | Probability of Any Given Sum during Rolling of a Pair of Dice\\n \")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n This MagicGraph explains the concept of probability in a visually interactive fashion through the example of rolling of a pair of dice .\\n \")]),_c('h5',[_vm._v(\" To Get Started: \")]),_vm._m(2),_c('v-responsive',[_c('v-layout',{attrs:{\"justify-center\":\"\"}},[_c('div',{staticClass:\"edliy-box-about\",attrs:{\"id\":\"jxgbox1\"}})])],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n Calculating the probability of a single event is straightforward.\\n Let's consider a random experiment (say tossing of a coin) that can yield multiple outcomes (heads or tails).\\n Let's say the number of all possible outcomes is \"),_c('i',[_vm._v(\"n\")]),_vm._v(\". Now assume that the ways in which a specific outcome (say getting heads) can be achieved is \"),_c('i',[_vm._v(\"m\")]),_vm._v(\".\\n Then the probability of the event (say A) that the given outcome is obtained, often denoted by \\\\(P(A)\\\\), is given by:\\n $$ P(A) = \\\\frac{m}{n}$$\\n The probability that event A doesn't happen is given by:\\n $$P(\\\\bar{A}) = 1- P(A) = 1- \\\\frac{m}{n}$$\\n \")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n There are many scenarios in which we may have to calculate the probability of occurrence of multiple events.\\n These events can be independent of each other, or dependent or mutually exclusive.\\n Let's consider a random experiment (such as rolling a pair of dice) that comprises of two events A and B. Let's say event A corresponds to getting an outcome 2 on one of the dice and event B corresponds to getting an outcome 4 on the other.\\n \"),_c('ul',{staticClass:\"a\"},[_c('li',[_c('h5',[_vm._v(\" Probability of EITHER A OR B \")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n Probability that either event A or B happens, denoted by \\\\(P(A∪B)\\\\), is given by:\\n $$P(A ∪ B) = P(A) + P(B) - P(A∩B) $$\\n where \\\\(P(A)\\\\) is the probability of occurrence of event A, \\\\(P(B)\\\\) is the probability of occurrence of event B, and \\\\(P(A∩B)\\\\) is the joint probability of events A and B.\\n \")])]),_c('li',[_c('h5',[_vm._v(\" Joint Probability of A AND B \")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n Joint probability of two events A and B, often denoted by \\\\(P(A∩B)\\\\), is the probability that both the events A and B take place. For two events A and B that can take place independent of each other (i.e. the outcome of one event doesn't affect\\n the outcome of other), the joint probability \\\\(P(A∩B)\\\\) is simply the product of their individual probabilities.\\n $$ P(A ∩B)= P(A)\\\\times P(B)$$\\n For two events that are mutually exclusive (i.e. they cannot happen together), the joint probability is zero.\\n $$ P(A∩B)= 0$$\\n \")])]),_c('li',[_c('h5',[_vm._v(\" Conditional Probability P(A | B) \")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n Conditional probability is the probability of the occurrence of event A conditional upon the occurrence of event B.\\n Stated in simple terms – conditional probability gives the chances of happening of event A when event B has already happened.\\n For example – consider rolling of a pair of dice. The probability of getting a sum of 6 (event A) while getting a 2 on at least one of the dices (event B).\\n \")])])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"mt-2\"},[_vm._v(\"\\n Imagine rolling a pair of dice. Your goal is to calculate the probability of getting any given sum.\\n Here is the way to think about and solve this problem. Start with finding the total of all possible outcomes that you can obtain when you roll a pair of dice.\\n Say that number is \\\\(N\\\\).\"),_c('br'),_c('br'),_vm._v(\"\\n Next, find the number of outcomes that will give the desired sum. Say there are \\\\(n\\\\) such outcomes.\"),_c('br'),_c('br'),_vm._v(\"\\n Then the probability of getting the desired sum is simply \\\\(P = n/N\\\\).\"),_c('br'),_c('br'),_vm._v(\"\\n During rolling of a pair of dice, the total of all possible outcomes is \\\\(6 \\\\times 6 =36\\\\) (each dice can give you six possible outcomes).\"),_c('br'),_vm._v(\"\\n To obtain the number of ways in which you can obtain a given sum, enter the sum in the blue box. Then, tap at the hands to roll the dice.\\n The MagicGraph will show all the outcomes with give you the desired sum total.\\n The MagicGraph will also calculate the probability of getting that sum in fraction and percentage.\\n \")])\n}]\n\nexport { render, staticRenderFns }","import {\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 placeCircle,\r\n placeAngle,\r\n placeDash,\r\n placeLabel,\r\n placeArc,\r\n placeLogo,\r\n createSpace\r\n} from '../Utils';\r\nconst Boxes = {\r\n box1: function () {\r\n JXG.Options.board.minimizeReflow = 'none';\r\n var brd2 = createSpace(-2, 24, -3, 23);\r\n brd2.options.image.highlight=false;\r\n brd2.options.image.opacity=1;\r\n brd2.options.text.highlight=false;\r\n placeLogo(brd2);\r\n makeResponsive(brd2);\r\n placeTitle(brd2, 'Probability in a Game of Dice', '(Probability of Getting a Given Sum)');\r\n //brd2.create('text', [11, 20, function(){return 'Rolling a Pair of Dice: Probability of Any Given Sum'}],{display:'internal', highlight:false, anchorX:'middle',fontSize:function(){return 32*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald;fontWeight:bold', fixed:true});\r\n brd2.create('text', [0, 18, function(){return 'Enter the Desired Sum Total Below (between 2 & 12)'}],{display:'internal', highlight:false, fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n var sum =brd2.create('input', [0, 16.8, ' ' , ''], {cssStyle:'width:5%',\r\n fontSize:function(){return 20*brd2.canvasHeight/800}, fixed:true});//\r\n //brd2.create('input', [0, 6.8, 2, ''], {cssStyle:'width:5%;fontFamily:Oswald;background-color:white;border:0px solid black;border-radius: 3.5px;',fontSize:function(){return 20*brd2.canvasHeight/800}, fixed:true});//\r\n sum.setLabel('Step # 1: Enter the sum total here')\r\n sum.label.setAttribute({visible:false, offset:[45, 0], CssStyle:'fontFamily:Oswald', fontSize:function(){return 20*brd2.canvasHeight/800}});\r\n sum.on('over', function () {this.label.setAttribute({visible:true});});\r\n sum.on('out', function () {this.label.setAttribute({visible:false});});\r\n //\r\n brd2.create('text', [0, 15.5, function(){return 'Tap at the Hand to Roll the Dice!'}],{fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n var player = brd2.create('image', ['/assets/dices.svg', [2, 10],[4.0,4.0]],{fixed:true, shadow:false, rotate:20});\r\n player.setLabel('Step # 2: Tap to Roll the Dice!')\r\n player.label.setAttribute({visible:false, offset:[0, -15], CssStyle:'fontFamily:Oswald', fontSize:12});\r\n player.on('over', function () {this.label.setAttribute({visible:true});});\r\n player.on('out', function () {this.label.setAttribute({visible:false});});\r\n var i=0;\r\n var j=0;\r\n var cnt = 0;\r\n var tup = [];\r\n var k =1;\r\n var m =1;\r\n var km=1;\r\n var vis=0;\r\n var ind = brd2.create('text', [17, 18, function(){return 'Outcomes with Sum Total of ' + sum.Value()}],{visible:()=>vis==1, display:'internal', anchorX:'middle', highlight:false, fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n\r\n /*var pop = function(){cnt=0;\r\n for(i=1; i<=6; i++){\r\n for(j=1; j<=6; j++){\r\n cnt+=1;\r\n tup[cnt-1] = [1, j]}\r\n }};*/\r\n var run = function(n){cnt=0;\r\n for(i=1; i<=6; i++){\r\n for(j=1; j<=6; j++){\r\n if(i+j ==n){\r\n cnt+=1;\r\n tup[cnt-1] = [i, j]}\r\n }}};\r\n var pt =function(){\r\n for(km=1; km<=36; km++){\r\n brd2.create('text', [19, 15.5-3*(km-1), function(){return '( '+tup[km-1][0]+' + '+tup[km-1][1]+' = '+(tup[km-1][0]+tup[km-1][1]).toFixed(0)+' )'}],{display:'internal', fontSize:function(){return 28*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n }\r\n }\r\n var img=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n','o', 'p', 'q', 'r', 's', 't'];\r\n var nme=[];\r\n var ini = function(){\r\n brd2.suspendUpdate();\r\n ind.setAttribute({visible:false});\r\n txt1.setAttribute({visible:false});\r\n txt2.setAttribute({visible:false});\r\n txt3.setAttribute({visible:false});\r\n txt4.setAttribute({visible:false});\r\n txt5.setAttribute({visible:false});\r\n txt6.setAttribute({visible:false});\r\n txt7.setAttribute({visible:false});\r\n txt8.setAttribute({visible:false});\r\n for (m=cnt; m>=1; m--){\r\n brd2.removeObject(img[2*(m-1)+1],true);\r\n brd2.removeObject(img[2*(m-1)+2], true);\r\n brd2.removeObject(nme[m]);\r\n }\r\n brd2.unsuspendUpdate();\r\n }\r\n var dice = function(){\r\n ind.setAttribute({visible:true})\r\n txt1.setAttribute({visible:true});\r\n txt2.setAttribute({visible:true});\r\n txt3.setAttribute({visible:true});\r\n txt4.setAttribute({visible:true});\r\n txt5.setAttribute({visible:true});\r\n txt6.setAttribute({visible:true});\r\n txt7.setAttribute({visible:true});\r\n txt8.setAttribute({visible:true});\r\n for (k=1; k<=cnt; k++){\r\n brd2.create('image', ['/assets/dice-'+tup[k-1][0]+'-red.svg', [13, 17.5-3*k],[2, 2]], {name:img[2*(k-1)+1], fixed:true, highlight:false});\r\n brd2.create('image', ['/assets/dice-'+tup[k-1][1]+'-green.svg', [17.5,17.5-3*k],[2, 2]],{name:img[2*(k-1)+2], rotate:70, fixed:true, highlight:false});\r\n nme[k]=brd2.create('text', [19, 15.5-3*(k-1),'( '+tup[k-1][0]+' + '+tup[k-1][1]+' = '+(tup[k-1][0]+tup[k-1][1]).toFixed(0)+' )'],\r\n {display:'internal', fontSize:function(){return 28*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n\r\n };\r\n };\r\n player.on('down', function(){i=0; j=0; k=1; m=1; tup=[];ini();run(sum.Value()); dice(); vis=1; brd2.update();});\r\n var txt1 =brd2.create('text', [0, 8, function(){return 'Number of Outcomes with Sum Total of '+sum.Value()}],{highlight:false, visible:false, display:'internal',fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n var txt2 =brd2.create('text', [5, 7, function(){return ''+ cnt }],{highlight:false ,anchorX:'middle', display:'internal', color:'blue',visible:false, fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald;fontWeight:bold', fixed:true});\r\n\r\n var txt3 =brd2.create('text', [0, 5.5, function(){return 'Probability of Getting a Sum Total of '+sum.Value()}],{highlight:false ,visible:false, display:'internal',fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n var txt4 =brd2.create('text', [5, 4.5, function(){return ''+ cnt + ' in 36'}],{highlight:false , anchorX:'middle',color:'blue',visible:false, display:'internal', fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald;fontWeight:bold', fixed:true});\r\n\r\n var txt5 =brd2.create('text', [0, 3., 'Probability Expressed as a Fraction'],{highlight:false ,display:'internal', visible:false,fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n var txt6 =brd2.create('text', [5, 2., function(){return (cnt/36).toFixed(3)}],{highlight:false ,anchorX:'middle',color:'blue',visible:false, display:'internal', fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald;fontWeight:bold', fixed:true});\r\n\r\n var txt7 =brd2.create('text', [0, 0.5, 'Probability Expressed as a Percentage'],{highlight:false ,display:'internal',visible:false, fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald', fixed:true});\r\n var txt8 =brd2.create('text', [5, -0.5, function(){return (100*cnt/36).toFixed(3) + '%'}],{highlight:false,visible:false,anchorX:'middle',color:'blue', display:'internal', fontSize:function(){return 20*brd2.canvasHeight/800}, cssStyle:'fontFamily:Oswald;fontWeight:bold', fixed:true});\r\n\r\n brd2.update();\r\n /////////////////////////////////////////////////////\r\n let magicGraph = document.querySelector(\"#jxgbox1\");\r\n let inputFields = magicGraph.querySelectorAll(\"input\");\r\n var onEachPress = function(event) { ini(); vis=0 }\r\n inputFields.forEach(function(field) {\r\n field.addEventListener('input', onEachPress);});\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=caf0fc16&\"\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=caf0fc16&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"],"sourceRoot":""}