HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/betaProbabilitesJC-N1Qgpdt6.js.map
{"version":3,"file":"betaProbabilitesJC-N1Qgpdt6.js","sources":["../../src/exercices/beta/betaProbabilitesJC.js"],"sourcesContent":["import Exercice from '../deprecatedExercice.js'\nimport { mathalea2d } from '../../modules/2dGeneralites.js'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\nimport { number, fraction } from 'mathjs'\nimport { Arbre, texProba } from '../../modules/arbres.js'\n\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.sup = true\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  const omega = new Arbre({\n    racine: true,\n    rationnel: this.sup,\n    nom: '\\\\Omega',\n    proba: fraction(1),\n    enfants: [\n      new Arbre(\n        {\n          rationnel: this.sup,\n          nom: 'Pile',\n          proba: fraction(0.5),\n          enfants: [new Arbre(\n            {\n              rationnel: this.sup,\n              nom: 'B',\n              proba: fraction(0.5)\n            }),\n          new Arbre(\n            {\n              rationnel: this.sup,\n              nom: 'R',\n              proba: fraction(1, 3)\n            }),\n          new Arbre(\n            {\n              rationnel: this.sup,\n              nom: 'V',\n              proba: fraction(1, 6)\n            })\n          ]\n        }),\n      new Arbre({\n        rationnel: this.sup,\n        nom: 'Face',\n        proba: fraction(0.5),\n        enfants: [new Arbre({\n          rationnel: this.sup,\n          nom: 'B',\n          proba: fraction(1, 3)\n        }),\n        new Arbre({\n          rationnel: this.sup,\n          nom: 'R',\n          proba: fraction(1, 6)\n        }),\n        new Arbre({\n          rationnel: this.sup,\n          nom: 'V',\n          proba: fraction(0.5)\n        })\n        ]\n      })\n    ]\n  })\n  const omega2 = new Arbre({\n    racine: true,\n    rationnel: false,\n    nom: '',\n    proba: 1,\n    visible: false,\n    alter: '',\n    enfants: [\n      new Arbre(\n        {\n          rationnel: false,\n          nom: 'A',\n          proba: 0.2,\n          enfants: [new Arbre(\n            {\n              rationnel: false,\n              nom: 'C',\n              proba: number(0.6)\n            }),\n          new Arbre(\n            {\n              rationnel: false,\n              nom: '\\\\bar C',\n              proba: 0.4\n            })\n          ]\n        }),\n      new Arbre({\n        rationnel: false,\n        nom: '\\\\bar A',\n        proba: 0.8,\n        enfants: [new Arbre({\n          rationnel: false,\n          nom: 'C',\n          proba: 0.45,\n          visible: false,\n          alter: 'x'\n        }),\n        new Arbre({\n          rationnel: false,\n          nom: '\\\\bar C',\n          proba: 0.55,\n          visible: false,\n          alter: '1 - x'\n        })\n        ]\n      })\n    ]\n  })\n\n  this.nouvelleVersion = function () {\n    this.listeQuestions = [] // Liste de questions\n    this.listeCorrections = [] // Liste de questions corrigées\n    this.autoCorrection = []\n    let texte = ''\n    let texteCorr = ''\n    omega.setTailles()\n    omega2.setTailles()\n    const probaB = omega.getProba('B', true)\n    const probaR = omega.getProba('R', true)\n    const probaV = omega.getProba('V', true)\n    const probaC = omega2.getProba('C', false)\n    console.log(`P(B) = ${texProba(probaB, true)}`)\n    console.log(`P(R) = ${texProba(probaR, true)}`)\n    console.log(`P(V) = ${texProba(probaV, true)}`)\n    console.log(`P(C) = ${texProba(probaC, false)}`)\n\n    const objets = omega.represente(0, 15, 0, 3, true, -1)\n    texte += mathalea2d({ xmin: -15, xmax: 1, ymin: -2, ymax: 15, style: 'inline' }, ...objets)\n    const objets2 = omega2.represente(0, 0, 0, 3, false, 1)\n    texte += mathalea2d({ xmin: 0, xmax: 18, ymin: 0, ymax: 17, style: 'inline' }, ...objets2)\n    texteCorr += 'et ceci est la correction'\n\n    this.listeQuestions.push(texte)\n    this.listeCorrections.push(texteCorr)\n    listeQuestionsToContenu(this)\n  }\n  this.besoinFormulaireCaseACocher = ['Proba rationnelle', true]\n}\n"],"names":["titre","NomQuelconqueDeLaFonctionQuiCreeExercice","Exercice","omega","Arbre","fraction","omega2","number","texte","texteCorr","probaB","probaR","probaV","probaC","texProba","objets","mathalea2d","objets2","listeQuestionsToContenu"],"mappings":"gHAMY,MAACA,EAAQ,uBAON,SAASC,GAA4C,CAClEC,EAAS,KAAK,IAAI,EAClB,KAAK,IAAM,GACX,KAAK,SAAW,GAChB,KAAK,sBAAwB,GAC7B,KAAK,OAAS,EACd,KAAK,WAAa,EAElB,KAAK,gBAAkB,EACvB,KAAK,MAAQ,GACb,MAAMC,EAAQ,IAAIC,EAAM,CACtB,OAAQ,GACR,UAAW,KAAK,IAChB,IAAK,UACL,MAAOC,EAAS,CAAC,EACjB,QAAS,CACP,IAAID,EACF,CACE,UAAW,KAAK,IAChB,IAAK,OACL,MAAOC,EAAS,EAAG,EACnB,QAAS,CAAC,IAAID,EACZ,CACE,UAAW,KAAK,IAChB,IAAK,IACL,MAAOC,EAAS,EAAG,CACjC,CAAa,EACH,IAAID,EACF,CACE,UAAW,KAAK,IAChB,IAAK,IACL,MAAOC,EAAS,EAAG,CAAC,CAClC,CAAa,EACH,IAAID,EACF,CACE,UAAW,KAAK,IAChB,IAAK,IACL,MAAOC,EAAS,EAAG,CAAC,CAClC,CAAa,CACF,CACX,CAAS,EACH,IAAID,EAAM,CACR,UAAW,KAAK,IAChB,IAAK,OACL,MAAOC,EAAS,EAAG,EACnB,QAAS,CAAC,IAAID,EAAM,CAClB,UAAW,KAAK,IAChB,IAAK,IACL,MAAOC,EAAS,EAAG,CAAC,CA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