File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can2F04-bL7jAZJ6.js.map
{"version":3,"file":"can2F04-bL7jAZJ6.js","sources":["../../src/exercices/can/2e/can2F04.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texFractionReduite } from '../../../lib/outils/deprecatedFractions.js'\nimport { reduireAxPlusB, rienSi1 } from '../../../lib/outils/ecritures'\nimport { sp } from '../../../lib/outils/outilString.js'\nimport { miseEnEvidence } from '../../../lib/outils/embellissements'\nimport Exercice from '../../deprecatedExercice.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Trouver les valeurs interdites d’une fonction'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const dateDePublication = '25/10/2021'\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence can2F04\n * Date de publication\n*/\nexport const uuid = '6f13a'\nexport const ref = 'can2F04'\nexport default function ValeurInterdite () {\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 let a, b, c, n\n if (choice([true, false])) {\n a = randint(-10, 10, 0)\n n = randint(-5, 5, 0)\n b = randint(-10, 10, 0)\n c = n * b\n this.question = `Donner la valeur interdite de la fonction $f$ définie par ${sp(1)}: ${sp(1)}$f(x)=\\\\dfrac{${rienSi1(a)}x}{${reduireAxPlusB(b, c)}}$.<br>\n \n `\n this.correction = `La valeur interdite est la solution de l'équation $${reduireAxPlusB(b, c)}=0$.<br>\n La valeur interdite est donc $${miseEnEvidence(texFractionReduite(-c, b))}$.`\n this.reponse = -n\n } else {\n a = randint(-10, 10, 0)\n\n b = randint(1, 10)\n this.question = `Donner la plus petite valeur interdite de la fonction $f$ définie par ${sp(1)}: ${sp(1)} $f(x)=\\\\dfrac{${rienSi1(a)}x}{x^2-${b ** 2}}$.<br>\n \n \n `\n this.correction = `Les valeurs interdites sont les solutions de l'équation $x^2-${b ** 2}=0$.<br>\n Cette équation a deux solutions : $${b}$ et $-${b}$.<br>\n La plus petite valeur interdite est donc : $${miseEnEvidence(`-${b}`)}$. `\n this.reponse = -b\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","uuid","ref","ValeurInterdite","Exercice","a","b","c","n","choice","randint","sp","rienSi1","reduireAxPlusB","miseEnEvidence","texFractionReduite"],"mappings":"wIAOY,MAACA,EAAQ,gDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAoB,aAOpBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAmB,CACzCC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EAEvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAGC,EAAGC,EACTC,EAAO,CAAC,GAAM,EAAK,CAAC,GACtBJ,EAAIK,EAAQ,IAAK,GAAI,CAAC,EACtBF,EAAIE,EAAQ,GAAI,EAAG,CAAC,EACpBJ,EAAII,EAAQ,IAAK,GAAI,CAAC,EACtBH,EAAIC,EAAIF,EACR,KAAK,SAAW,6DAA6DK,EAAG,CAAC,CAAC,KAAKA,EAAG,CAAC,CAAC,iBAAiBC,EAAQP,CAAC,CAAC,MAAMQ,EAAeP,EAAGC,CAAC,CAAC;AAAA;AAAA,cAGjJ,KAAK,WAAa,sDAAsDM,EAAeP,EAAGC,CAAC,CAAC;AAAA,oCAC9DO,EAAeC,EAAmB,CAACR,EAAGD,CAAC,CAAC,CAAC,KACvE,KAAK,QAAU,CAACE,IAEhBH,EAAIK,EAAQ,IAAK,GAAI,CAAC,EAEtBJ,EAAII,EAAQ,EAAG,EAAE,EACjB,KAAK,SAAW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