File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/betaProbabilites-XZfqawwI.js.map
{"version":3,"file":"betaProbabilites-XZfqawwI.js","sources":["../../src/exercices/beta/betaProbabilites.js"],"sourcesContent":["import { choice } from '../../lib/outils/arrayOutils'\nimport { texNombre } from '../../lib/outils/texNombre.js'\nimport Exercice from '../Exercice.js'\nimport { listeQuestionsToContenu, randint } from '../../modules/outils.js'\nexport const titre = 'Probabilités simples'\n\n/**\n * Description didactique de l'exercice\n * @author Rémi Angot et Matthieu Devillers\n * Référence\n*/\nexport default function NomQuelconqueDeLaFonctionQuiCreeExercice () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.consigne = ''\n this.nbQuestionsModifiable = false\n this.nbCols = 2 // Uniquement pour la sortie LaTeX\n this.nbColsCorr = 1 // Uniquement pour la sortie LaTeX\n // this.sup = 1; // Niveau de difficulté\n this.tailleDiaporama = 3 // Pour les exercices chronométrés. 50 par défaut pour les exercices avec du texte\n this.video = '' // Id YouTube ou url\n\n this.nouvelleVersion = function () {\n this.listeQuestions = [] // Liste de questions\n this.listeCorrections = [] // Liste de questions corrigées\n this.autoCorrection = []\n\n const pG = randint(20, 60) // pG est un pourcentage\n const pN = randint(10, 100 - pG - 10)\n const sport = choice(['hand-ball', 'football', 'rugby', 'basket', 'volley-ball', 'water-polo', 'baseball'])\n this.consigne = `Lors d'un match de ${sport}, l'équipe qui reçoit un adversaire a une probabilité de ${texNombre(pG / 100)} de gagner son match`\n this.consigne += ` et ${texNombre(pN / 100)} de faire un match nul.`\n\n const question1 = 'Quelle est la probabilité, pour cette équipe, de ne pas perdre le match ?'\n let correction1 = 'Ne pas perdre un match, c\\'est, soit le gagner, soit faire un match nul, la probabilité est donc : <br> <br>'\n correction1 += '$\\\\text{P(\"Ne pas perdre le match\")} = \\\\text{P(\"Gagner le match\") + } \\\\text{P(\"Match nul\")}$ <br>'\n correction1 += `$\\\\phantom{\\\\text{P(\"Ne pas perdre le match\")}} = ${texNombre(pG / 100)} + ${texNombre(pN / 100)}$ <br> `\n correction1 += `$\\\\phantom{\\\\text{P(\"Ne pas perdre le match\")}}= ${texNombre((pG + pN) / 100)}$ <br>`\n const question2 = 'Quelle est la probabilité, pour cette équipe, de perdre le match ?'\n let correction2 = 'L\\'évènement \"Perdre le match\" est l\\'évènement contraire de \"Ne pas perdre le match\", on peut donc affirmer que : <br> <br>'\n correction2 += '$ \\\\text{P(\"Perdre le match\") + } \\\\text{P(\"Ne pas perdre le match\")} = 1$ <br>'\n correction2 += '$ \\\\phantom{\\\\text{P(\"Ne pas perdre le match\") + }} \\\\text{P(\"Perdre le match\")} = 1 - \\\\text{P(\"Ne pas perdre le match\")}$ <br>'\n correction2 += `$ \\\\phantom{\\\\text{P(\"Ne pas perdre le match\") + }} \\\\text{P(\"Perdre le match\")} = 1 - ${texNombre((pG + pN) / 100)}$ <br>`\n correction2 += `$ \\\\phantom{\\\\text{P(\"Ne pas perdre le match\") + }} \\\\text{P(\"Perdre le match\")} = ${texNombre(1 - (pG + pN) / 100)}$ <br>`\n\n this.listeQuestions.push(question1, question2)\n this.listeCorrections.push(correction1, correction2)\n listeQuestionsToContenu(this)\n }\n // this.besoinFormulaireNumerique = ['Niveau de difficulté', 3];\n}\n"],"names":["titre","NomQuelconqueDeLaFonctionQuiCreeExercice","Exercice","pG","randint","pN","sport","choice","texNombre","question1","correction1","question2","correction2","listeQuestionsToContenu"],"mappings":"+DAIY,MAACA,EAAQ,uBAON,SAASC,GAA4C,CAClEC,EAAS,KAAK,IAAI,EAClB,KAAK,SAAW,GAChB,KAAK,sBAAwB,GAC7B,KAAK,OAAS,EACd,KAAK,WAAa,EAElB,KAAK,gBAAkB,EACvB,KAAK,MAAQ,GAEb,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EAExB,MAAMC,EAAKC,EAAQ,GAAI,EAAE,EACnBC,EAAKD,EAAQ,GAAI,IAAMD,EAAK,EAAE,EAC9BG,EAAQC,EAAO,CAAC,YAAa,WAAY,QAAS,SAAU,cAAe,aAAc,UAAU,CAAC,EAC1G,KAAK,SAAW,sBAAsBD,CAAK,4DAA4DE,EAAUL,EAAK,GAAG,CAAC,uBAC1H,KAAK,UAAY,OAAOK,EAAUH,EAAK,GAAG,CAAC,0BAE3C,MAAMI,EAAY,4EAClB,IAAIC,EAAc,8GAClBA,GAAe,sGACfA,GAAe,qDAAqDF,EAAUL,EAAK,GAAG,CAAC,MAAMK,EAAUH,EAAK,GAAG,CAAC,UAChHK,GAAe,oDAAoDF,GAAWL,EAAKE,GAAM,GAAG,CAAC,UAC7F,MAAMM,EAAY,qEAClB,IAAIC,EAAc,6HAClBA,GAAe,kFACfA,GAAe,mIACfA,GAAe,0FAA0FJ,GAAWL,EAAKE,GAAM,GAAG,CAAC,UACnIO,GAAe,sFAAsFJ,EAAU,GAAKL,EAAKE,GAAM,GAAG,CAAC,SAEnI,KAAK,eAAe,KAAKI,EAAWE,CAAS,EAC7C,KAAK,iBAAiB,KAAKD,EAAaE,CAAW,EACnDC,EAAwB,IAAI,CAC7B,CAEH"}