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/can3C09-2BkpRa96.js.map
{"version":3,"file":"can3C09-2BkpRa96.js","sources":["../../src/exercices/can/3e/can3C09.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport Exercice from '../../deprecatedExercice.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Calculer avec une racine carrée'\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 = 'a2d6a'\nexport const ref = 'can3C09'\nexport default function CalculAvecRacineCarree1 () {\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  this.formatChampTexte = 'largeur15 inline'\n  // Dans un exercice simple, ne pas mettre de this.listeQuestions = [] ni de this.consigne\n\n  this.nouvelleVersion = function () {\n    let d\n    const a = randint(2, 10)\n    const b = randint(2, 10)\n    const c = randint(1, 10)\n    d = randint(1, 10)\n    while (c === d) { d = randint(1, 10) }\n    if (choice([true, false])) {\n      this.question = `Calculer $${a}\\\\sqrt{${c ** 2}}+${b}\\\\sqrt{${d ** 2}}$.`\n      this.correction = `$\\\\sqrt{${c ** 2}}=${c}$ et $\\\\sqrt{${d ** 2}}=${d}$, ainsi:<br>\n       $${a}\\\\sqrt{${c ** 2}}+${b}\\\\sqrt{${d ** 2}}=${a}\\\\times ${c}+${b}\\\\times ${d}=${a * c + b * d}$`\n      this.reponse = a * c + b * d\n    } else {\n      this.question = `Calculer $${a}\\\\sqrt{${c ** 2}}-${b}\\\\sqrt{${d ** 2}}$.`\n      this.correction = `$\\\\sqrt{${c ** 2}}=${c}$ et $\\\\sqrt{${d ** 2}}=${d}$, ainsi:<br>\n       $${a}\\\\sqrt{${c ** 2}}-${b}\\\\sqrt{${d ** 2}}=${a}\\\\times ${c}-${b}\\\\times ${d}=${a * c - b * d}$`\n      this.reponse = a * c - b * d\n    }\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","uuid","ref","CalculAvecRacineCarree1","Exercice","d","a","randint","b","c","choice"],"mappings":"sDAGY,MAACA,EAAQ,kCACRC,EAAkB,GAClBC,EAAiB,WAQjBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA2B,CACjDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBAGxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EACJ,MAAMC,EAAIC,EAAQ,EAAG,EAAE,EACjBC,EAAID,EAAQ,EAAG,EAAE,EACjBE,EAAIF,EAAQ,EAAG,EAAE,EAEvB,IADAF,EAAIE,EAAQ,EAAG,EAAE,EACVE,IAAMJ,GAAKA,EAAIE,EAAQ,EAAG,EAAE,EAC/BG,EAAO,CAAC,GAAM,EAAK,CAAC,GACtB,KAAK,SAAW,aAAaJ,CAAC,UAAUG,GAAK,CAAC,KAAKD,CAAC,UAAUH,GAAK,CAAC,MACpE,KAAK,WAAa,WAAWI,GAAK,CAAC,KAAKA,CAAC,gBAAgBJ,GAAK,CAAC,KAAKA,CAAC;AAAA,UACjEC,CAAC,UAAUG,GAAK,CAAC,KAAKD,CAAC,UAAUH,GAAK,CAAC,KAAKC,CAAC,WAAWG,CAAC,IAAID,CAAC,WAAWH,CAAC,IAAIC,EAAIG,EAAID,EAAIH,CAAC,IAC/F,KAAK,QAAUC,EAAIG,EAAID,EAAIH,IAE3B,KAAK,SAAW,aAAaC,CAAC,UAAUG,GAAK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