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/can1F23-d5oS56Cq.js.map
{"version":3,"file":"can1F23-d5oS56Cq.js","sources":["../../src/exercices/can/1e/can1F23.js"],"sourcesContent":["import { repere } from '../../../lib/2d/reperes.js'\nimport { texteParPosition } from '../../../lib/2d/textes.js'\nimport { spline } from '../../../lib/mathFonctions/Spline.js'\nimport { choice } from '../../../lib/outils/arrayOutils'\nimport { mathalea2d } from '../../../modules/2dGeneralites.js'\nimport { randint } from '../../../modules/outils.js'\nimport { tableauSignesFonction } from '../../../lib/mathFonctions/etudeFonction.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const titre = 'Dresser le tableau de signes d\\'une fonction dérivée à partir d\\'un graphique'\nexport const dateDePublication = '18/11/2023' // La date de publication initiale au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const uuid = 'ad915' // @todo à changer dans un nouvel exo (utiliser pnpm getNewUuid)\nexport const ref = 'can1F23'// @todo à modifier aussi\n// une liste de nœuds pour définir une fonction Spline\nexport default function SignesTabGSpline () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 1\n\n  this.nouvelleVersion = function () {\n    const noeuds1 = [{ x: -4, y: -1, deriveeGauche: 0.5, deriveeDroit: 0.5, isVisible: true },\n      { x: -3, y: 0, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: -2, y: 4, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: -1, y: 2, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: 0, y: 1, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: 2, y: 0, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: 3, y: -2, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 4, y: 0, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: 5, y: 1, deriveeGauche: 0.5, deriveeDroit: 0.5, isVisible: true }\n    ]\n    // une autre liste de nœuds...\n    const noeuds2 = [{ x: -6, y: -2, deriveeGauche: 2, deriveeDroit: 2, isVisible: true },\n      { x: -5, y: 0, deriveeGauche: 2, deriveeDroit: 3, isVisible: true },\n      { x: -4, y: 3, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: -3, y: 2, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: -2, y: 0, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: -1, y: -1, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 0, y: 0, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: 1, y: 3, deriveeGauche: 3, deriveeDroit: 3, isVisible: true },\n      { x: 2, y: 5, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 3, y: 4, deriveeGauche: -2, deriveeDroit: -2, isVisible: true },\n      { x: 4, y: 3, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 5, y: 4, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: 6, y: 5, deriveeGauche: 0.2, deriveeDroit: 0.2, isVisible: true }\n    ]\n\n    const noeuds3 = [{ x: -6, y: -4, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: -2, y: 0, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: 2, y: 2, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 4, y: 0, deriveeGauche: -2, deriveeDroit: -2, isVisible: true },\n      { x: 6, y: -3, deriveeGauche: -1, deriveeDroit: -1, isVisible: true }\n    ]\n\n    const noeuds4 = [{ x: -6, y: 3, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: -5, y: 4, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: -4, y: 2, deriveeGauche: -1.5, deriveeDroit: -1.5, isVisible: true },\n      { x: -2, y: 0, deriveeGauche: -1, deriveeDroit: -1.5, isVisible: true },\n      { x: 0, y: -3, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 1, y: -1, deriveeGauche: 1.5, deriveeDroit: 1.5, isVisible: true },\n      { x: 2, y: 0, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 3, y: -3, deriveeGauche: -2, deriveeDroit: -2, isVisible: true }\n    ]\n\n    // une liste des listes\n    const mesFonctions = [noeuds1, noeuds2, noeuds3, noeuds4]//, , noeuds2noeuds1, noeuds2,\n    function aleatoiriseCourbe (listeFonctions) {\n      const coeffX = choice([-1, 1]) // symétries ou pas\n      const coeffY = choice([-1, 1])\n      const deltaX = randint(-2, +2) // translations\n      const deltaY = 0\n      const choix = choice(listeFonctions)\n      return choix.map((noeud) => Object({\n        x: (noeud.x + deltaX) * coeffX,\n        y: (noeud.y + deltaY) * coeffY,\n        deriveeGauche: noeud.deriveeGauche * coeffX * coeffY,\n        deriveeDroit: noeud.deriveeDroit * coeffX * coeffY,\n        isVisible: noeud.isVisible\n      }))\n    }\n\n    let bornes = {}\n    const o = texteParPosition('O', -0.3, -0.3, 'milieu', 'black', 1)\n    const nuage = aleatoiriseCourbe(mesFonctions)\n    const maSpline = spline(nuage)\n    const fonctionD = x => maSpline.derivee(x)\n    const { xMin, xMax, yMin, yMax } = maSpline.trouveMaxes()\n    const tableau = tableauSignesFonction(maSpline.fonction, xMin, xMax, { step: 1, tolerance: 0.1, nomVariable: 'x', nomFonction: 'f^\\\\prime(x)' })\n\n    const tableauD = tableauSignesFonction(fonctionD, xMin, xMax, { step: 1, tolerance: 0.1, nomVariable: 'x', nomFonction: 'f^\\\\prime(x)' })\n    const choixInteractif = choice([tableau, tableauD])\n    this.spline = maSpline\n    bornes = maSpline.trouveMaxes()\n    const repere1 = repere({\n      xMin: bornes.xMin - 1,\n      xMax: bornes.xMax + 1,\n      yMin: bornes.yMin - 1,\n      yMax: bornes.yMax + 1,\n      grilleX: false,\n      grilleY: false,\n      grilleSecondaire: true,\n      grilleSecondaireYDistance: 1,\n      grilleSecondaireXDistance: 1,\n      grilleSecondaireYMin: bornes.yMin - 1,\n      grilleSecondaireYMax: bornes.yMax + 1,\n      grilleSecondaireXMin: bornes.xMin - 1,\n      grilleSecondaireXMax: bornes.xMax + 1\n    })\n    const courbe1 = maSpline.courbe({\n      repere: repere1,\n      epaisseur: 1.5,\n      ajouteNoeuds: true,\n      optionsNoeuds: { color: 'blue', taille: 2, style: 'x', epaisseur: 2 },\n      color: 'blue'\n    })\n    const objetsEnonce = [repere1, courbe1]\n\n    if (choixInteractif === tableau) { this.reponse = ['Non', 'NON', 'non'] } else { this.reponse = ['Oui', 'OUI', 'oui'] }\n    this.question = `On donne la représentation graphique d'une fonction $f$. <br>\n    Dresser le tableau de signes de sa fonction dérivée $f^\\\\prime$.<br>` +\n        mathalea2d(Object.assign({ pixelsParCm: 30, scale: 0.55, style: 'margin: auto' }, { xmin: xMin - 1, ymin: yMin - 1, xmax: xMax + 1, ymax: yMax + 1 }), objetsEnonce, o)\n    if (this.interactif) {\n      this.question = 'Voici la représentation graphique d\\'une fonction $f$ :<br>'\n      this.question += mathalea2d(Object.assign({ pixelsParCm: 30, scale: 0.55, style: 'margin: auto' }, { xmin: xMin - 1, ymin: yMin - 1, xmax: xMax + 1, ymax: yMax + 1 }), objetsEnonce, o)\n      this.question += '<br>Le tableau de signes de la fonction $f^\\\\prime$ est : <br>'\n      this.question += choixInteractif\n      this.question += '<br>Répondre par \"Oui\" ou \"Non\" <br>'\n      this.correction = `L'ensemble de définition de $f$ est $[${maSpline.x[0]}\\\\,;\\\\,${maSpline.x[maSpline.n - 1]}]$.<br>\n    Lorsque la fonction $f$ est croissante, $f^\\\\prime$ est positive et lorsque $f$ est décroissante, $f^\\\\prime$ est négative.<br>`\n      if (choixInteractif === tableau) {\n        this.correction += 'Voici le tableau de signes de $f(x)$ sur son ensemble de définition :<br> '\n        this.correction += tableauD\n      } else {\n        this.correction += ''\n      }\n    } else {\n      this.correction = `L'ensemble de définition de $f$ est $[${maSpline.x[0]}\\\\,;\\\\,${maSpline.x[maSpline.n - 1]}]$.<br>\n    Lorsque la fonction $f$ est croissante, $f^\\\\prime$ est positive et lorsque $f$ est décroissante, $f^\\\\prime$ est négative.<br>`\n      this.correction += tableauD\n    }\n\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["interactifReady","interactifType","titre","dateDePublication","uuid","ref","SignesTabGSpline","Exercice","mesFonctions","aleatoiriseCourbe","listeFonctions","coeffX","choice","coeffY","deltaX","randint","deltaY","noeud","bornes","o","texteParPosition","nuage","maSpline","spline","fonctionD","x","xMin","xMax","yMin","yMax","tableau","tableauSignesFonction","tableauD","choixInteractif","repere1","repere","courbe1","objetsEnonce","mathalea2d"],"mappings":"wSAQY,MAACA,EAAkB,GAClBC,EAAiB,WACjBC,EAAQ,8EACRC,EAAoB,aACpBC,EAAO,QACPC,EAAM,UAEJ,SAASC,GAAoB,CAC1CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EAEvB,KAAK,gBAAkB,UAAY,CA6CjC,MAAMC,EAAe,CA5CL,CAAC,CAAE,EAAG,GAAI,EAAG,GAAI,cAAe,GAAK,aAAc,GAAK,UAAW,EAAM,EACvF,CAAE,EAAG,GAAI,EAAG,EAAG,cAAe,EAAG,aAAc,EAAG,UAAW,EAAM,EACnE,CAAE,EAAG,GAAI,EAAG,EAAG,cAAe,EAAG,aAAc,EAAG,UAAW,EAAM,EACnE,CAAE,EAAG,GAAI,EAAG,EAAG,cAAe,GAAI,aAAc,GAAI,UAAW,EAAM,EACrE,CAAE,EAAG,EAAG,EAAG,EAA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