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/200F3-01-PmLp7-MY.js.map
{"version":3,"file":"200F3-01-PmLp7-MY.js","sources":["../../src/exercices/2e/200F3-01.js"],"sourcesContent":["import { droite } from '../../lib/2d/droites.js'\nimport RepereBuilder from '../../lib/2d/RepereBuilder'\nimport { tableauSignesFonction, trouveFonctionAffine } from '../../lib/mathFonctions/etudeFonction.js'\nimport { rationnalise } from '../../lib/mathFonctions/outilsMaths.js'\nimport { fixeBordures, mathalea2d } from '../../modules/2dGeneralites.js'\nimport { randint } from '../../modules/outils.js'\nimport Exercice from '../Exercice'\n\nexport const titre = 'Lecture graphique du signe d\\'une fonction affine'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n\nexport const dateDePublication = '11/07/2023' // La date de publication initiale au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const dateDeModifImportante = '11/07/2023' // Une date de modification importante au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const uuid = 'e39b8'\nexport const ref = '200F3-01'\n\n/**\n * trois niveaux, trouver les signes d'une fonction affine\n * @author Jean-Claude Lhote\n * Référence\n */\nexport default class LectureSigneAffine extends Exercice {\n  constructor () {\n    super()\n    this.titre = titre\n    this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n    this.nbQuestions = 1\n    this.sup = 3\n    this.besoinFormulaireNumerique = ['Niveau', 3]\n  }\n\n  nouvelleVersion () {\n    // Dans ce modèle, j'ai pris la première question du fichier Doc-Automatismes-2de-acOT-GTCAN-2023.pdf.\n    // La question posée est de lister tous les diviseurs d'un entier.\n    // Selon le niveau choisi, on augmente la difficulté de l'entier choisi.\n    // Le reste est identique pour les trois niveaux\n    // Le bloc décidant de l'aléatoire\n    let a, b\n    switch (this.sup) {\n      case 1: // coefficient nul\n        a = 0\n        b = randint(-4, 4, 0)\n        break\n      case 2: { // coefficient entier relatif\n        const y = randint(-3, 3, 0)\n        const x = randint(-3, 3, 0)\n                ;[a, b] = trouveFonctionAffine(0, y, x, 0)\n      }\n        break\n      case 3: // coefficient rationnel\n        b = 0\n        a = Math.random() < 0.5 ? randint(-3, 3, 0) : 1 / randint(-4, 4, 0)\n        break\n    }\n    a = rationnalise(a)\n    b = rationnalise(b)\n    const fonction = x => a.produitFraction(rationnalise(x)).sommeFraction(b)\n    const tableau = tableauSignesFonction(fonction,\n      -6,\n      6,\n      {\n        step: 1,\n        substituts: [\n          { antVal: -6, antTex: '-\\\\infty' },\n          { antVal: 6, antTex: '+\\\\infty' }\n        ]\n      })\n    const repere = new RepereBuilder({ xMin: -6, xMax: 6, yMin: -6, yMax: 6 }).buildStandard()\n    const d = droite(a.valeurDecimale, -1, b.valeurDecimale)\n    this.question = 'Dresser le tableau de signes de la fonction représentée ci-dessous.<br>' + mathalea2d(Object.assign({}, fixeBordures([repere, d])), [repere, d])\n    this.correction = 'Le tableau de signes de la fonction est représenté ci-dessous.<br>' + tableau\n    this.reponse = '' // @fixme compléter choisir la forme de la réponse\n  }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","dateDeModifImportante","uuid","ref","LectureSigneAffine","Exercice","a","b","randint","y","x","trouveFonctionAffine","rationnalise","tableau","tableauSignesFonction","repere","RepereBuilder","d","droite","mathalea2d","fixeBordures"],"mappings":"0RAQY,MAACA,EAAQ,mDACRC,EAAkB,GAClBC,EAAiB,WAEjBC,EAAoB,aACpBC,EAAwB,aACxBC,EAAO,QACPC,EAAM,WAOJ,MAAMC,UAA2BC,CAAS,CACvD,aAAe,CACb,MAAO,EACP,KAAK,MAAQR,EACb,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,IAAM,EACX,KAAK,0BAA4B,CAAC,SAAU,CAAC,CAC9C,CAED,iBAAmB,CA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