File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can5L01-BKJf2JNf.js.map
{"version":3,"file":"can5L01-BKJf2JNf.js","sources":["../../src/exercices/can/5e/can5L01.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texNombre } from '../../../lib/outils/texNombre.js'\nimport Exercice from '../../Exercice.js'\nimport { randint, calculANePlusJamaisUtiliser } from '../../../modules/outils.js'\nexport const titre = 'Trouver $a+1$ ou $a-1$ connaissant $2a$'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence\n * Date de publication\n*/\nexport const uuid = 'cc70a'\nexport const ref = 'can5L01'\nexport default function MoitiePlusOuMoinsUn () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n // Dans un exercice simple, ne pas mettre de this.listeQuestions = [] ni de this.consigne\n this.formatChampTexte = 'largeur15 inline'\n this.nouvelleVersion = function () {\n const a = randint(21, 35, 30) / 10\n if (choice([true, false])) {\n this.reponse = calculANePlusJamaisUtiliser(a / 2 + 1)\n this.question = `On a $2\\\\times a=${texNombre(a)}$, combien vaut $a+1$ ?`\n this.correction = `$2\\\\times a=${texNombre(a)}$, donc le nombre $a$ est égal à $\\\\dfrac{${texNombre(a)}}{2}=${texNombre(a / 2)}$.<br>Donc $a+1=${texNombre(a / 2)}+1=${texNombre(a / 2 + 1)}$.`\n } else {\n this.reponse = calculANePlusJamaisUtiliser(a / 2 - 1)\n this.question = `On a $2\\\\times a=${texNombre(a)}$, combien vaut $a-1$ ?`\n this.correction = `$2\\\\times a=${texNombre(a)}$, donc le nombre $a$ est égal à $\\\\dfrac{${texNombre(a)}}{2}=${texNombre(a / 2)}$.<br>Donc $a-1=${texNombre(a / 2)}-1=${texNombre(a / 2 - 1)}$.`\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","uuid","ref","MoitiePlusOuMoinsUn","Exercice","a","randint","choice","calculANePlusJamaisUtiliser","texNombre"],"mappings":"qEAIY,MAACA,EAAQ,0CACRC,EAAkB,GAClBC,EAAiB,WAQjBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAuB,CAC7CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EAEvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAQ,GAAI,GAAI,EAAE,EAAI,GAC5BC,EAAO,CAAC,GAAM,EAAK,CAAC,GACtB,KAAK,QAAUC,EAA4BH,EAAI,EAAI,CAAC,EACpD,KAAK,SAAW,qBAAqBI,EAAUJ,CAAC,CAAC,0BACjD,KAAK,WAAa,eAAeI,EAAUJ,CAAC,CAAC,6CAA6CI,EAAUJ,CAAC,CAAC,QAAQI,EAAUJ,EAAI,CAAC,CAAC,mBAAmBI,EAAUJ,EAAI,CAAC,CAAC,MAAMI,EAAUJ,EAAI,EAAI,CAAC,CAAC,OAE3L,KAAK,QAAUG,EAA4BH,EAAI,EAAI,CAAC,EACpD,KAAK,SAAW,qBAAqBI,EAAUJ,CAAC,CAAC,0BACjD,KAAK,WAAa,eAAeI,EAAUJ,CAAC,CAAC,6CAA6CI,EAAUJ,CAAC,CAAC,QAAQI,EAAUJ,EAAI,CAAC,CAAC,mBAAmBI,EAAUJ,EAAI,CAAC,CAAC,MAAMI,EAAUJ,EAAI,EAAI,CAAC,CAAC,MAE7L,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC7B,CACH"}