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/can3F01-bcw9zz6p.js.map
{"version":3,"file":"can3F01-bcw9zz6p.js","sources":["../../src/exercices/can/3e/can3F01.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 Exercice from '../../deprecatedExercice.js'\nexport const dateDeModifImportante = '26/10/2023'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const titre = 'Lire une image graphiquement'\n/*!\n * @author Gilles Mora\n  *\n * Référence can3F01\n*/\nexport const uuid = '966a6'\nexport const ref = 'can3F01'\nexport default function ImageSpline () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 1\n  this.formatChampTexte = 'largeur15 inline'\n  this.nouvelleVersion = function () {\n    const noeuds1 = [{ x: -4, y: -1, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: -3, y: 0, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: -2, y: 3, 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, deriveeDroit: 0, isVisible: true }\n    ]\n    const noeuds2 = [{ x: -4, y: 0, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: -3, y: 2, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: -2, y: 3, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: -1, y: 2, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: 0, y: 0, deriveeGauche: -1, deriveeDroit: -1, isVisible: true },\n      { x: 2, y: -1, deriveeGauche: 0, deriveeDroit: 0, isVisible: true },\n      { x: 3, y: 0, deriveeGauche: 2, deriveeDroit: 2, isVisible: true },\n      { x: 4, y: 2, deriveeGauche: 1, deriveeDroit: 1, isVisible: true },\n      { x: 5, y: 3, deriveeGauche: 0, deriveeDroit: 0, isVisible: true }\n    ]\n    const mesFonctions = [noeuds1, 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 = randint(-1, 1)// randint(-2, +2)\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    let bornes = {}\n    const antecedent = randint(0, 8)\n    const o = texteParPosition('O', -0.3, -0.3, 'milieu', 'black', 1)\n    const nuage = aleatoiriseCourbe(mesFonctions)\n    const theSpline = spline(nuage)\n    this.spline = theSpline\n    bornes = theSpline.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 = theSpline.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    this.reponse = theSpline.y[antecedent]\n    this.question = `Quelle est l'image de $${theSpline.x[antecedent]}$ ?\n    ` + mathalea2d(Object.assign({ pixelsParCm: 30, scale: 0.7, style: 'margin: auto' }, { xmin: bornes.xMin - 1, ymin: bornes.yMin - 1, xmax: bornes.xMax + 1, ymax: bornes.yMax + 1 }), objetsEnonce, o)// fixeBordures(objetsEnonce))\n    this.correction = `Pour lire l'image de $${theSpline.x[antecedent]}$, on place la valeur de $${theSpline.x[antecedent]}$ sur l'axe des abscisses (axe de lecture  des antécédents) et on lit\n    son image  sur l'axe des ordonnées (axe de lecture des images). On obtient :  $f(${theSpline.x[antecedent]})=${theSpline.y[antecedent]}$`\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["dateDeModifImportante","interactifReady","interactifType","titre","uuid","ref","ImageSpline","Exercice","mesFonctions","aleatoiriseCourbe","listeFonctions","coeffX","choice","coeffY","deltaX","randint","deltaY","noeud","bornes","antecedent","o","texteParPosition","nuage","theSpline","spline","repere1","repere","courbe1","objetsEnonce","mathalea2d"],"mappings":"4RAOY,MAACA,EAAwB,aACxBC,EAAkB,GAClBC,EAAiB,WACjBC,EAAQ,+BACrB;AAAA;AAAA;AAAA;AAAA,EAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAe,CACrCC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KA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