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/can5C20-LgddTMDP.js.map
{"version":3,"file":"can5C20-LgddTMDP.js","sources":["../../src/exercices/can/5e/can5C20.js"],"sourcesContent":["import { texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { arrondi } from '../../../lib/outils/nombres'\nimport { texNombre } from '../../../lib/outils/texNombre'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Soustraire deux décimaux*'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\nexport const dateDePublication = '09/05/2022'\n/*!\n * @author  Gilles Mora\n *\n *\n */\nexport const uuid = '0f007'\nexport const ref = 'can5C20'\nexport default function Soustraire2Decimaux2 () {\n  Exercice.call(this)\n  this.nbQuestions = 1\n  this.formatChampTexte = 'largeur15 inline'\n  this.typeExercice = 'simple'\n  this.tailleDiaporama = 2\n  this.nouvelleVersion = function () {\n    const a = randint(2, 9)\n    const b = randint(1, a - 1)\n    const d1 = randint(1, 6)\n    const d2 = randint(d1, 9)\n    const c2 = randint(1, 9)\n    this.question = `Calculer $${texNombre(a + d1 / 10, 1)}-${texNombre(b + d2 / 10 + c2 / 100, 2)}$.`\n    this.correction = `$${texNombre(a + d1 / 10, 1)}-${texNombre(b + d2 / 10 + c2 / 100, 2)}=${texNombre(a + d1 / 10 - b - d2 / 10 - c2 / 100, 2)}$`\n    this.reponse = arrondi(a + d1 / 10 - b - d2 / 10 - c2 / 100, 2)\n    this.correction += texteEnCouleur(`\n    <br> Mentalement : <br>\n   On commence par soustraire les unités : $${texNombre(a + d1 / 10, 1)}-${b}=${texNombre(a + d1 / 10 - b, 1)}$.<br>\n   Puis on soustrait la partie décimale de $${texNombre(a + d2 / 10 + c2 / 100, 2)}$ c'est-à-dire $${texNombre(d2 / 10 + c2 / 100, 2)}$.\n    On obtient $${texNombre(a + d1 / 10 - b, 1)}-${texNombre(d2 / 10 + c2 / 100, 2)}=${texNombre(a + d1 / 10 - b - d2 / 10 - c2 / 100, 2)}$`)\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDePublication","uuid","ref","Soustraire2Decimaux2","Exercice","a","randint","b","d1","d2","c2","texNombre","arrondi","texteEnCouleur"],"mappings":"qEAKY,MAACA,EAAQ,4BACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SACVC,EAAoB,aACjC;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAwB,CAC9CC,EAAS,KAAK,IAAI,EAClB,KAAK,YAAc,EACnB,KAAK,iBAAmB,mBACxB,KAAK,aAAe,SACpB,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAQ,EAAG,CAAC,EAChBC,EAAID,EAAQ,EAAGD,EAAI,CAAC,EACpBG,EAAKF,EAAQ,EAAG,CAAC,EACjBG,EAAKH,EAAQE,EAAI,CAAC,EAClBE,EAAKJ,EAAQ,EAAG,CAAC,EACvB,KAAK,SAAW,aAAaK,EAAUN,EAAIG,EAAK,GAAI,CAAC,CAAC,IAAIG,EAAUJ,EAAIE,EAAK,GAAKC,EAAK,IAAK,CAAC,CAAC,KAC9F,KAAK,WAAa,IAAIC,EAAUN,EAAIG,EAAK,GAAI,CAAC,CAAC,IAAIG,EAAUJ,EAAIE,EAAK,GAAKC,EAAK,IAAK,CAAC,CAAC,IAAIC,EAAUN,EAAIG,EAAK,GAAKD,EAAIE,EAAK,GAAKC,EAAK,IAAK,CAAC,CAAC,IAC7I,KAAK,QAAUE,EAAQP,EAAI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