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/can4C01-qmK6pY0P.js.map
{"version":3,"file":"can4C01-qmK6pY0P.js","sources":["../../src/exercices/can/4e/can4C01.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { ecritureAlgebrique, ecritureParentheseSiNegatif } from '../../../lib/outils/ecritures'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Utiliser les priorités opératoires avec des relatifs'\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 can4C01\n */\nexport const uuid = '1da2d'\nexport const ref = 'can4C01'\nexport default function PrioriteOperatoireEtRelatifs () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.formatChampTexte = 'largeur25 inline'\n  this.nouvelleVersion = function () {\n    let a = randint(-12, 12, 0)\n    const b = randint(-4, 4, [-1, 0, 1])\n    const c = randint(2, 6)\n    if (a > 0 && b > 0) {\n      a = -a\n    }\n    if (choice([true, false])) {\n      this.question = `Calculer $${a}${ecritureAlgebrique(b)}\\\\times ${c}$.`\n      this.correction = `La multiplication étant prioritaire sur l'addition, on commence par effectuer  le produit $${b}\\\\times ${ecritureParentheseSiNegatif(c)}=${b * c}$.<br>\n      Ainsi, $${a}${ecritureAlgebrique(b)}\\\\times ${c}=${a}${ecritureAlgebrique(b * c)}=${a + b * c}$`\n    } else {\n      this.question = `Calculer $${a}${ecritureAlgebrique(c)}\\\\times ${ecritureParentheseSiNegatif(b)}$.`\n      this.correction = `La multiplication étant prioritaire sur l'addition, on commence par effectuer  le produit $${c}\\\\times ${ecritureParentheseSiNegatif(b)}=${b * c}$.<br>\n      Ainsi, $${a}${ecritureAlgebrique(c)}\\\\times ${ecritureParentheseSiNegatif(b)}=${a}${ecritureAlgebrique(b * c)}=${a + b * c}$`\n    }\n    this.reponse = a + b * c\n    this.canEnonce = this.question\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","PrioriteOperatoireEtRelatifs","Exercice","a","randint","b","c","choice","ecritureAlgebrique","ecritureParentheseSiNegatif"],"mappings":"oEAIY,MAACA,EAAQ,uDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAgC,CACtDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAIC,EAAQ,IAAK,GAAI,CAAC,EAC1B,MAAMC,EAAID,EAAQ,GAAI,EAAG,CAAC,GAAI,EAAG,CAAC,CAAC,EAC7BE,EAAIF,EAAQ,EAAG,CAAC,EAClBD,EAAI,GAAKE,EAAI,IACfF,EAAI,CAACA,GAEHI,EAAO,CAAC,GAAM,EAAK,CAAC,GACtB,KAAK,SAAW,aAAaJ,CAAC,GAAGK,EAAmBH,CAAC,CAAC,WAAWC,CAAC,KAClE,KAAK,WAAa,8FAA8FD,CAAC,WAAWI,EAA4BH,CAAC,CAAC,IAAID,EAAIC,CAAC;AAAA,gBACzJH,CAAC,GAAGK,EAAmBH,CAAC,CAAC,WAAWC,CAAC,IAAIH,CAAC,GAAGK,EAAmBH,EAAIC,CAAC,CAAC,IAAIH,EAAIE,EAAIC,CAAC,MAE7F,KAAK,SAAW,aAAaH,CAAC,GAAGK,EAAmBF,CAAC,CAAC,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