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/6N11-rspNklsX.js.map
{"version":3,"file":"6N11-rspNklsX.js","sources":["../../src/exercices/6e/6N11.js"],"sourcesContent":["import { droiteGraduee } from '../../lib/2d/reperes.js'\nimport { combinaisonListes } from '../../lib/outils/arrayOutils'\nimport { nombreDeChiffresDansLaPartieEntiere } from '../../lib/outils/nombres'\nimport { lettreIndiceeDepuisChiffre } from '../../lib/outils/outilString.js'\nimport { stringNombre, texNombre } from '../../lib/outils/texNombre'\nimport Exercice from '../deprecatedExercice.js'\nimport { mathalea2d } from '../../modules/2dGeneralites.js'\nimport { calculANePlusJamaisUtiliser, listeQuestionsToContenu, randint } from '../../modules/outils.js'\nimport { context } from '../../modules/context.js'\nimport { ajouteChampTexteMathLive } from '../../lib/interactif/questionMathLive.js'\nimport { setReponse } from '../../lib/interactif/gestionInteractif.js'\nimport { texteGras } from '../../lib/outils/embellissements'\n\nexport const titre = 'Read the X-value of a point on a number line (large numbers)'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCHybride'\n\n/**\n * Lire l'abscisse entière d'un point\n * @author Jean-Claude Lhote et Rémi Angot\n * référence 6N11\n * Relecture : Novembre 2021 par EE\n */\nexport const uuid = 'acd4a'\nexport const ref = '6N11'\nexport default function LireAbscisseEntiere2d () {\n  Exercice.call(this) // Héritage de la classe Exercice()\n  this.nbQuestions = 3\n  this.nbQuestionsModifiable = true\n  this.nbCols = 1\n  this.nbColsCorr = 1\n  this.spacing = 1\n  this.spacingCorr = 1\n  this.sup = 4\n  this.interactif = false\n\n  this.nouvelleVersion = function () {\n    // exercisenumber is 0 for exercise 1\n    this.consigne = 'Read the X-value of each of the following points.'\n    if (this.interactif) this.consigne += texteGras(' Remember to put the necessary spaces.')\n    let typesDeQuestions\n    this.listeQuestions = []\n    this.listeCorrections = []\n    this.autoCorrection = []\n    this.contenu = '' // Liste de questions\n    this.contenuCorrection = '' // Liste de questions corrigées\n    if (this.sup === 4) {\n      typesDeQuestions = combinaisonListes([1, 2, 3], this.nbQuestions)\n    } else {\n      typesDeQuestions = combinaisonListes(\n        [this.sup],\n        this.nbQuestions\n      )\n    }\n    const d = []\n    for (let i = 0, abs0, l1, l2, l3, x1, x2, x3, reponse1, reponse2, reponse3, pas1, texte = '', texteCorr = '', cpt = 0; i < this.nbQuestions && cpt < 50;) {\n      // The following line must not be put after the setReponses because otherwise it deletes them\n      this.autoCorrection[3 * i] = { propositions: [{ statut: 4, feedback: '' }] }\n      this.autoCorrection[3 * i + 1] = { propositions: [{ statut: 4, feedback: '' }] }\n      this.autoCorrection[3 * i + 2] = { propositions: [{ statut: 4, feedback: '' }] }\n      l1 = lettreIndiceeDepuisChiffre(i * 3 + 1)\n      l2 = lettreIndiceeDepuisChiffre(i * 3 + 2)\n      l3 = lettreIndiceeDepuisChiffre(i * 3 + 3)\n      switch (typesDeQuestions[i]) {\n        case 1: // Placer des entiers sur un axe (milliers)\n          abs0 = randint(1, 9) * 1000\n          pas1 = 0.001\n          break\n\n        case 2: // Placer des entiers sur un axe (dizaines de mille)\n          abs0 = randint(5, 15) * 10000\n          pas1 = 0.0001\n          break\n\n        case 3: // Placer des entiers sur un axe (centaines de mille)\n          abs0 = randint(35, 85) * 100000\n          pas1 = 0.00001\n          break\n      }\n      x1 = calculANePlusJamaisUtiliser(randint(0, 27) / 10)\n      x2 = calculANePlusJamaisUtiliser(randint(33, 47) / 10)\n      x3 = calculANePlusJamaisUtiliser(randint(53, 67) / 10)\n      reponse1 = calculANePlusJamaisUtiliser(x1 / pas1 + abs0)\n      reponse2 = calculANePlusJamaisUtiliser(x2 / pas1 + abs0)\n      reponse3 = calculANePlusJamaisUtiliser(x3 / pas1 + abs0)\n      d[2 * i] = droiteGraduee({\n        Unite: 4,\n        Min: 0,\n        Max: 7.1,\n        axeStyle: '->',\n        pointTaille: 5,\n        pointStyle: 'x',\n        labelsPrincipaux: false,\n        thickSec: true,\n        step1: 10,\n        labelListe: [[0, context.isAmc ? `${texNombre(abs0, 0)}` : `${stringNombre(abs0)}`], [1, context.isAmc ? `${texNombre(calculANePlusJamaisUtiliser(abs0 + 1 / pas1), 0)}` : `${stringNombre(calculANePlusJamaisUtiliser(abs0 + 1 / pas1))}`]],\n        pointListe: [[x1, l1], [x2, l2], [x3, l3]]\n      })\n      d[2 * i + 1] = droiteGraduee({\n        Unite: 4,\n        Min: 0,\n        Max: 7.1,\n        axeStyle: '->',\n        pointTaille: 5,\n        pointStyle: 'x',\n        labelsPrincipaux: false,\n        thickSec: true,\n        step1: 10,\n        labelListe: [\n          [x1, !context.isAmc ? stringNombre(reponse1) : texNombre(reponse1, 0)],\n          [x2, !context.isAmc ? stringNombre(reponse2) : texNombre(reponse2, 0)],\n          [x3, !context.isAmc ? stringNombre(reponse3) : texNombre(reponse3, 0)]\n        ],\n        pointListe: [[x1, l1], [x2, l2], [x3, l3]]\n\n      })\n\n      texte = mathalea2d({ xmin: -2, ymin: -1, xmax: 30, ymax: 2, pixelsParCm: 20, scale: 0.5 }, d[2 * i])\n      texteCorr = mathalea2d({ xmin: -2, ymin: -2, xmax: 30, ymax: 2, pixelsParCm: 20, scale: 0.5 }, d[2 * i + 1])\n\n      if (this.interactif && context.isHtml) {\n        setReponse(this, 3 * i, texNombre(reponse1, 0), { formatInteractif: 'text' })\n        setReponse(this, 3 * i + 1, texNombre(reponse2, 0), { formatInteractif: 'text' })\n        setReponse(this, 3 * i + 2, texNombre(reponse3, 0), { formatInteractif: 'text' })\n        texte += '<br>' + ajouteChampTexteMathLive(this, 3 * i, 'inline width50 college6eme', { texteAvant: l1 })\n        texte += '<br>' + ajouteChampTexteMathLive(this, 3 * i + 1, 'inline width50 college6eme', { texteAvant: l2 })\n        texte += '<br>' + ajouteChampTexteMathLive(this, 3 * i + 2, 'inline width50 college6eme', { texteAvant: l3 })\n      } else if (context.isAmc) {\n        this.autoCorrection[i] = {\n          enonce: texte,\n          enonceAvant: false,\n          propositions: [\n            {\n              type: 'AMCNum',\n              propositions: [{\n                texte: '',\n                statut: '',\n                reponse: {\n                  texte: 'Read the abscissa of each point.<br>' + texte + `<br>Abscissa of $${l1}$:`,\n                  valeur: reponse1,\n                  param: {\n                    digits: nombreDeChiffresDansLaPartieEntiere(reponse1),\n                    decimals: 0,\n                    signe: false,\n                    approx: 0\n                  }\n                }\n              }]\n            },\n            {\n              type: 'AMCNum',\n              propositions: [{\n                texte: '',\n                statut: '',\n                reponse: {\n                  texte: `Abscissa of $${l2}$:`,\n                  valeur: reponse2,\n                  param: {\n                    digits: nombreDeChiffresDansLaPartieEntiere(reponse2),\n                    decimals: 0,\n                    signe: false,\n                    approx: 0\n                  }\n                }\n              }]\n            },\n            {\n              type: 'AMCNum',\n              propositions: [{\n                texte: '',\n                statut: '',\n                reponse: {\n                  texte: `Abscissa of $${l3}$:`,\n                  valeur: reponse3,\n                  param: {\n                    digits: nombreDeChiffresDansLaPartieEntiere(reponse3),\n                    decimals: 0,\n                    signe: false,\n                    approx: 0\n                  }\n                }\n              }]\n            }\n          ]\n        }\n      }\n\n      if (this.questionJamaisPosee(i, texte)) {\n        // If the question has never been asked, we create another one\n        this.listeQuestions.push(texte)\n        this.listeCorrections.push(texteCorr)\n        i++\n      }\n      cpt++\n    }\n    listeQuestionsToContenu(this)\n  }\n  this.besoinFormulaireNumerique = [\n    'Difficulty level',\n    4,\n    '1: Thousands\\n2: Tens of thousands\\n3: Hundreds of thousands\\n4: Combination'\n  ]\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","LireAbscisseEntiere2d","Exercice","texteGras","typesDeQuestions","combinaisonListes","d","i","abs0","l1","l2","l3","x1","x2","x3","reponse1","reponse2","reponse3","pas1","texte","texteCorr","cpt","lettreIndiceeDepuisChiffre","randint","calculANePlusJamaisUtiliser","droiteGraduee","context","texNombre","stringNombre","mathalea2d","setReponse","ajouteChampTexteMathLive","nombreDeChiffresDansLaPartieEntiere","listeQuestionsToContenu"],"mappings":"kLAaY,MAACA,EAAQ,+DACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,aAQVC,EAAO,QACPC,EAAM,OACJ,SAASC,GAAyB,CAC/CC,EAAS,KAAK,IAAI,EAClB,KAAK,YAAc,EACnB,KAAK,sBAAwB,GAC7B,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,QAAU,EACf,KAAK,YAAc,EACnB,KAAK,IAAM,EACX,KAAK,WAAa,GAElB,KAAK,gBAAkB,UAAY,CAEjC,KAAK,SAAW,oDACZ,KAAK,aAAY,KAAK,UAAYC,EAAU,wCAAwC,GACxF,IAAIC,EACJ,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EACxB,KAAK,QAAU,GACf,KAAK,kBAAoB,GACrB,KAAK,MAAQ,EACfA,EAAmBC,EAAkB,CAAC,EAAG,EAAG,CAAC,EAAG,KAAK,WAAW,EAEhED,EAAmBC,EACjB,CAAC,KAAK,GAAG,EACT,KAAK,WACN,EAEH,MAAMC,EAAI,CAAE,EACZ,QAASC,EAAI,EAAGC,EAAMC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAUC,EAAUC,EAAUC,EAAMC,EAAQ,GAAIC,EAAY,GAAIC,EAAM,EAAGd,EAAI,KAAK,aAAec,EAAM,IAAK,CAQxJ,OANA,KAAK,eAAe,EAAId,CAAC,EAAI,CAAE,aAAc,CAAC,CAAE,OAAQ,EAAG,SAAU,EAAI,CAAA,CAAG,EAC5E,KAAK,eAAe,EAAIA,EAAI,CAAC,EAAI,CAAE,aAAc,CAAC,CAAE,OAAQ,EAAG,SAAU,EAAI,CAAA,CAAG,EAChF,KAAK,eAAe,EAAIA,EA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