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/can3F06-1Jd0h1-Q.js.map
{"version":3,"file":"can3F06-1Jd0h1-Q.js","sources":["../../src/exercices/can/3e/can3F06.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texFractionReduite } from '../../../lib/outils/deprecatedFractions.js'\nimport { ecritureParentheseSiNegatif } from '../../../lib/outils/ecritures'\nimport { abs } from '../../../lib/outils/nombres'\nimport Exercice from '../../deprecatedExercice.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Déterminer le coefficient d’une fonction affine'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const dateDePublication = '25/10/2021'\n\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence can3F06\n*/\n\nexport const uuid = '17987'\nexport const ref = 'can3F06'\nexport default function CoefficientFonctionAffine () {\n  Exercice.call(this) // Héritage de la classe Exercice()\n  this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  // Dans un exercice simple, ne pas mettre de this.listeQuestions = [] ni de this.consigne\n  this.formatChampTexte = 'largeur15 inline'\n  this.nouvelleVersion = function () {\n    const b = randint(-3, 3, 0)\n    const c = randint(1, 5)\n    const n = choice([-4, -3, -2, 2, 3, 4])\n    const d = b + n * c\n    if (b > 0) {\n      this.question = `$f$ est une fonction affine telle que $f(x)=ax+${b}$ et $f(${c})=${d}$.<br>\n\n    Donner la valeur de $a$.\n    `\n      this.correction = `Comme $f(${c})=${d}$, on a $a\\\\times ${c}+${ecritureParentheseSiNegatif(b)}=${d}$.<br>\n    On en déduit $ ${c}a=${d}-${ecritureParentheseSiNegatif(b)}$, d'où $a=\\\\dfrac{${d}-${ecritureParentheseSiNegatif(b)}}{${c}}=\\\\dfrac{${d - b}}{${c}}=${texFractionReduite(d - b, c)}$.`\n\n      this.reponse = (d - b) / c\n    } else {\n      this.question = `$f$ est une fonction affine telle que $f(x)=ax-${abs(b)}$ et $f(${c})=${d}$.<br>\n\n      Donner la valeur de $a$.\n    `\n      this.correction = `Comme $f(${c})=${d}$, on a $a\\\\times ${c}+${ecritureParentheseSiNegatif(b)}=${d}$.<br>\n    On en déduit $${c}a=${d}-${ecritureParentheseSiNegatif(b)}$, d'où $a=\\\\dfrac{${d}-${ecritureParentheseSiNegatif(b)}}{${c}}=\\\\dfrac{${d - b}}{${c}}=${texFractionReduite(d - b, c)}$.`\n\n      this.reponse = (d - b) / c\n    }\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = '$a=\\\\ldots$'\n  }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","uuid","ref","CoefficientFonctionAffine","Exercice","b","randint","c","n","choice","d","ecritureParentheseSiNegatif","texFractionReduite","abs"],"mappings":"0HAMY,MAACA,EAAQ,kDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAoB,aAQpBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA6B,CACnDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EAEvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAQ,GAAI,EAAG,CAAC,EACpBC,EAAID,EAAQ,EAAG,CAAC,EAChBE,EAAIC,EAAO,CAAC,GAAI,GAAI,GAAI,EAAG,EAAG,CAAC,CAAC,EAChCC,EAAIL,EAAIG,EAAID,EACdF,EAAI,GACN,KAAK,SAAW,kDAAkDA,CAAC,WAAWE,CAAC,KAAKG,CAAC;AAAA;AAAA;AAAA,MAIrF,KAAK,WAAa,YAAYH,CAAC,KAAKG,CAAC,qBAAqBH,C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