File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can5C26--PMPQkXR.js.map
{"version":3,"file":"can5C26--PMPQkXR.js","sources":["../../src/exercices/can/5e/can5C26.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { ecritureAlgebrique } from '../../../lib/outils/ecritures'\nimport Exercice from '../../deprecatedExercice.js'\nimport { texNombre } from '../../../lib/outils/texNombre'\nimport { randint } from '../../../modules/outils.js'\nexport const interactifType = 'mathLive'\nexport const interactifReady = true\nexport const titre = 'Additionner des entiers relatifs (écriture simplifiée)'\nexport const dateDePublication = '04/10/2023'\n/*!\n * @author Gilles Mora (J'ai repris l'ex 5R20)\n *\n * Référence can5C25\n */\nexport const uuid = '8a835'\nexport const ref = 'can5C26'\nexport default function AdditionRelatifBisCAN () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.sup = 10\n this.tailleDiaporama = 2\n this.nouvelleVersion = function () {\n this.formatChampTexte = 'largeur15 inline'\n this.formatInteractif = 'calcul'\n\n let a = randint(1, this.sup)\n let b = randint(1, this.sup)\n const k = choice([[-1, -1], [-1, 1], [1, -1]]) // Les deux nombres relatifs ne peuvent pas être tous les deux positifs\n a = a * k[0]\n b = b * k[1]\n if (this.interactif) {\n this.question = `$${texNombre(a)}${ecritureAlgebrique(b)} =$`\n } else {\n this.question = `Calculer $${texNombre(a)}${ecritureAlgebrique(b)}$.`\n }\n\n this.correction = `$ ${a}${ecritureAlgebrique(b)} = ${a + b} $`\n this.reponse = a + b\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n}\n"],"names":["interactifType","interactifReady","titre","dateDePublication","uuid","ref","AdditionRelatifBisCAN","Exercice","a","randint","b","k","choice","texNombre","ecritureAlgebrique"],"mappings":"oEAKY,MAACA,EAAiB,WACjBC,EAAkB,GAClBC,EAAQ,yDACRC,EAAoB,aACjC;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAyB,CAC/CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,IAAM,GACX,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,KAAK,iBAAmB,mBACxB,KAAK,iBAAmB,SAExB,IAAIC,EAAIC,EAAQ,EAAG,KAAK,GAAG,EACvBC,EAAID,EAAQ,EAAG,KAAK,GAAG,EAC3B,MAAME,EAAIC,EAAO,CAAC,CAAC,GAAI,EAAE,EAAG,CAAC,GAAI,CAAC,EAAG,CAAC,EAAG,EAAE,CAAC,CAAC,EAC7CJ,EAAIA,EAAIG,EAAE,CAAC,EACXD,EAAIA,EAAIC,EAAE,CAAC,EACP,KAAK,WACP,KAAK,SAAW,IAAIE,EAAUL,CAAC,CAAC,GAAGM,EAAmBJ,CAAC,CAAC,MAExD,KAAK,SAAW,aAAaG,EAAUL,CAAC,CAAC,GAAGM,EAAmBJ,CAAC,CAAC,KAGnE,KAAK,WAAa,KAAKF,CAAC,GAAGM,EAAmBJ,CAAC,CAAC,MAAMF,EAAIE,CAAC,KAC3D,KAAK,QAAUF,EAAIE,CACpB,EACD,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC9B"}