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/can6N04-pCEMtWMb.js.map
{"version":3,"file":"can6N04-pCEMtWMb.js","sources":["../../src/exercices/can/6e/can6N04.js"],"sourcesContent":["import { droiteGraduee } from '../../../lib/2d/reperes.js'\nimport { texteParPosition } from '../../../lib/2d/textes.js'\nimport { texFractionReduite } from '../../../lib/outils/deprecatedFractions.js'\nimport { pgcd } from '../../../lib/outils/primalite'\nimport { context } from '../../../modules/context.js'\nimport FractionEtendue from '../../../modules/FractionEtendue.js'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../deprecatedExercice.js'\nimport { mathalea2d } from '../../../modules/2dGeneralites.js'\nexport const titre = 'Lire une abscisse sur une droite graduée'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCHybride'\n\n/*!\n * @author Jean-Claude Lhote et Gilles Mora\n * Créé pendant l'été 2021\n * Référence can6N04\n */\nexport const uuid = 'ca515'\nexport const ref = 'can6N04'\nexport default function AbscisseFractionnaire () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.formatChampTexte = 'largeur15 inline'\n  this.formatInteractif = 'fractionEgale'\n  this.consigne = ''\n\n  this.nouvelleVersion = function () {\n    const a = randint(2, 6) // dénominateur\n    let b = randint(2, a * 4 - 1)\n    do {\n      b = randint(2, a * 4 - 1) // numérateur\n    } while (b % a === 0)\n    const c = new FractionEtendue(b, a)\n    this.reponse = c\n    this.question = `Déterminer l'abscisse du point $A$.<br>\n    \n    `\n\n    this.question += mathalea2d({ xmin: -1, ymin: -1.5, xmax: 14, ymax: 1.5, scale: 0.5, style: 'margin: auto' }, texteParPosition('A', 3 * b / a, 0.9, 'milieu', 'blue', 2), droiteGraduee({\n      Unite: 3,\n      Min: 0,\n      Max: 4.2,\n      x: 0,\n      y: 0,\n      thickSecDist: 1 / a,\n      thickSec: true,\n      thickOffset: 0,\n      axeStyle: '->',\n      pointListe: [[b / a, '']],\n      pointCouleur: 'blue',\n      pointStyle: 'x',\n      labelsPrincipaux: true,\n      step1: 1,\n      step2: 1\n    }))\n    if (pgcd(a, b) === 1) {\n      this.correction = `L'unité est divisée en $${a}$ intervalles.<br>\n    Une graduation correspond donc à $\\\\dfrac{1}{${a}}$. <br>\n     Comme le point $A$ est situé à $${b}$ graduations de l'origine,\n      l'abscisse du point $A$ est donc $\\\\dfrac{1}{${a}}\\\\times ${b}$, soit  $\\\\dfrac{${b}}{${a}}$.<br>\n      `\n    } else {\n      this.correction = `L'unité est divisée en $${a}$ intervalles.<br>\n      Une graduation correspond donc à $\\\\dfrac{1}{${a}}$. <br>\n       Comme le point $A$ est situé à $${b}$ graduations de l'origine,\n        l'abscisse du point $A$ est donc $\\\\dfrac{1}{${a}}\\\\times ${b}$, soit  $\\\\dfrac{${b}}{${a}}$ que l'on peut simplifier en $${texFractionReduite(b, a)}$.<br>\n        `\n    }\n    if (context.isAmc) {\n      this.autoCorrection[0] = {\n        enonce: this.question,\n        options: { multicols: true },\n        propositions: [\n          {\n            type: 'AMCNum',\n            propositions: [{\n              texte: this.correction,\n              statut: '',\n              reponse: {\n                texte: 'Numérateur',\n                valeur: b,\n                param: {\n                  digits: b > 9 ? 2 : 1,\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: 'Dénominateur',\n                valeur: a,\n                param: {\n                  digits: 1,\n                  decimals: 0,\n                  signe: false,\n                  approx: 0\n                }\n              }\n            }]\n          }\n        ]\n      }\n    }\n    this.canEnonce = this.question\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","AbscisseFractionnaire","Exercice","a","randint","b","c","FractionEtendue","mathalea2d","texteParPosition","droiteGraduee","pgcd","texFractionReduite","context"],"mappings":"mLASY,MAACA,EAAQ,2CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,aAEvB;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,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,iBAAmB,gBACxB,KAAK,SAAW,GAEhB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAQ,EAAG,CAAC,EACtB,IAAIC,EAAID,EAAQ,EAAGD,EAAI,EAAI,CAAC,EAC5B,GACEE,EAAID,EAAQ,EAAGD,EAAI,EAAI,CAAC,QACjBE,EAAIF,IAAM,GACnB,MAAMG,EAAI,IAAIC,EAAgBF,EAAGF,CAAC,EAClC,KAAK,QAAUG,EACf,KAAK,SAAW;AAAA;AAAA,MAIhB,KAAK,UAAYE,EAAW,CAAE,KAAM,GAAI,KAAM,KAAM,KAAM,GAAI,KAAM,IAAK,MAAO,GAAK,MAAO,cAAgB,EAAEC,EAAiB,IAAK,EAAIJ,EAAIF,EAAG,GAAK,SAAU,OAAQ,CAAC,EAAGO,EAAc,CACtL,MAAO,EACP,IAAK,EACL,IAAK,IACL,EAAG,EACH,EAAG,EACH,aAAc,EAAIP,EAClB,SAAU,GACV,YAAa,EACb,SAAU,KACV,WAAY,CAAC,CAACE,EAAIF,EAAG,EAAE,CAAC,EACxB,aAAc,OACd,WAAY,IACZ,iBAAkB,GAClB,MAAO,EACP,MAAO,CACb,CAAK,CAAC,EACEQ,EAAKR,EAAGE,CAAC,IAAM,EACjB,KAAK,WAAa,2BAA2BF,CAAC;AAAA,mDACDA,CAAC;AAAA,u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