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/can3C04-ktPm-Cd8.js.map
{"version":3,"file":"can3C04-ktPm-Cd8.js","sources":["../../src/exercices/can/3e/can3C04.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { obtenirListeFractionsIrreductibles } from '../../../lib/outils/deprecatedFractions.js'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../Exercice.js'\nimport FractionEtendue from '../../../modules/FractionEtendue.js'\nexport const titre = 'Calculer une somme entre fraction et entier'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/*!\n * @author Jean-Claude Lhote\n  * Créé pendant l'été 2021\n * Référence can3C04\n*/\nexport const uuid = '1853b'\nexport const ref = 'can3C04'\nexport default function SommeEntierEtFractionIrred () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.formatChampTexte = 'largeur15 inline'\n  this.formatInteractif = 'fraction'\n  this.nouvelleVersion = function () {\n    const maFraction = choice(obtenirListeFractionsIrreductibles())\n    const a = randint(1, 4)\n    const b = maFraction[0]\n    const c = maFraction[1]\n    const bSurC = new FractionEtendue(b, c)\n    const d = new FractionEtendue(a * c + b, c).simplifie()\n    this.reponse = d\n    this.question = `Calculer sous la forme d'une fraction irréductible :  $${a}+${bSurC.texFraction}$.`\n    this.correction = `$${a}+${bSurC.texFraction} = \\\\dfrac{${a} \\\\times ${c}}{${c}} + ${bSurC.texFraction} = \\\\dfrac{${a * c}}{${c}} + ${bSurC.texFraction}  =${d.texFraction}$`\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","SommeEntierEtFractionIrred","Exercice","maFraction","choice","obtenirListeFractionsIrreductibles","a","randint","b","c","bSurC","FractionEtendue","d"],"mappings":"mHAKY,MAACA,EAAQ,8CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,EAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA8B,CACpDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,iBAAmB,WACxB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAaC,EAAOC,GAAoC,EACxDC,EAAIC,EAAQ,EAAG,CAAC,EAChBC,EAAIL,EAAW,CAAC,EAChBM,EAAIN,EAAW,CAAC,EAChBO,EAAQ,IAAIC,EAAgBH,EAAGC,CAAC,EAChCG,EAAI,IAAID,EAAgBL,EAAIG,EAAID,EAAGC,CAAC,EAAE,UAAW,EACvD,KAAK,QAAUG,EACf,KAAK,SAAW,0DAA0DN,CAAC,IAAII,EAAM,WAAW,KAChG,KAAK,WAAa,IAAIJ,CAAC,IAAII,EAAM,WAAW,cAAcJ,CAAC,YAAYG,CAAC,KAAKA,CAAC,OAAOC,EAAM,WAAW,cAAcJ,EAAIG,CAAC,KAAKA,CAAC,OAAOC,EAAM,WAAW,MAAME,EAAE,WAAW,IAC1K,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC7B,CACH"}