File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can1F21-VVC_CwPm.js.map
{"version":3,"file":"can1F21-VVC_CwPm.js","sources":["../../src/exercices/can/1e/can1F21.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport {\n ecritureAlgebrique,\n ecritureParentheseSiNegatif,\n reduirePolynomeDegre3\n} from '../../../lib/outils/ecritures.js'\nimport Exercice from '../../Exercice.js'\nimport FractionEtendue from '../../../modules/FractionEtendue.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Déterminer l’abscisse ou l’ordonnée du sommet d’une parabole'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\nexport const dateDePublication = '21/09/2022'\n\n/*!\n * @author Gilles Mora\n */\n\nexport const uuid = '2d459'\nexport const ref = 'can1F21'\nexport default function EcondDegreAbscisseOrdonneeSommet () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.formatChampTexte = 'largeur15 inline'\n this.tailleDiaporama = 2\n this.nouvelleVersion = function () {\n const nomF = [\n ['f'], ['g'], ['h'], ['u'],\n ['v']\n ]\n let a, b, c, r, alpha, nom\n if (choice([true, false])) {\n this.formatInteractif = 'fractionEgale'\n a = randint(-3, 3, 0)\n b = randint(-9, 9)\n c = randint(-9, 9)\n nom = choice(nomF)\n r = new FractionEtendue(-b, 2 * a)\n this.question = `Soit $${nom}$ la fonction définie sur $\\\\mathbb{R}$ par :<br>\n\n $${nom}(x)=${reduirePolynomeDegre3(0, a, b, c)}$. <br>\n Quelle est l'abscisse du sommet de la parabole représentant $${nom}$ ?`\n\n this.correction = `$${nom}$ est une fonction polynôme du second degré écrite sous forme développée $ax^2+bx+c$.<br>\n Le sommet de la parabole a pour abscisse $-\\\\dfrac{b}{2a}$.<br>\n L'abscisse du sommet est donc : $-\\\\dfrac{${b}}{2\\\\times${ecritureParentheseSiNegatif(a)} }= ${r.texFraction}${r.texSimplificationAvecEtapes()}$.`\n this.reponse = r\n } else {\n this.formatInteractif = 'calcul'\n a = randint(-3, 3, 0)\n b = randint(-2, 2) * 2 * a\n c = randint(-9, 9)\n alpha = -b / (2 * a)\n nom = choice(nomF)\n r = a * alpha ** 2 + b * alpha + c\n this.question = `Soit $${nom}$ la fonction définie sur $\\\\mathbb{R}$ par :<br>\n\n $${nom}(x)=${reduirePolynomeDegre3(0, a, b, c)}$. <br>\n\n Quelle est l'ordonnée du sommet de la parabole représentant $${nom}$ ?`\n\n this.correction = `$${nom}$ est une fonction polynôme du second degré écrite sous forme développée $ax^2+bx+c$.<br>\n Le sommet de la parabole a pour abscisse $-\\\\dfrac{b}{2a}=-\\\\dfrac{${b}}{2\\\\times${ecritureParentheseSiNegatif(a)} }= ${alpha}$.<br>\n L'ordonnée du sommet est donnée par l'image de l'abscisse, soit `\n\n if (a === 1) {\n if (b === 0) { if (c === 0) { this.correction += `$ ${ecritureParentheseSiNegatif(alpha)}^2=${r}$.` } else { this.correction += `$${ecritureParentheseSiNegatif(alpha)}^2${ecritureAlgebrique(c)}=${r}$.` } } else { this.correction += `$${ecritureParentheseSiNegatif(alpha)}^2${ecritureAlgebrique(b)}\\\\times ${ecritureParentheseSiNegatif(alpha)}${ecritureAlgebrique(c)}=${r}$.` }\n } else {\n if (b === 0) { if (c === 0) { this.correction += `$${a}\\\\times ${ecritureParentheseSiNegatif(alpha)}^2=${r}$.` } else { this.correction += `$${a}\\\\times ${ecritureParentheseSiNegatif(alpha)}^2${ecritureAlgebrique(c)}=${r}$.` } } else { this.correction += `$${a}\\\\times ${ecritureParentheseSiNegatif(alpha)}^2${ecritureAlgebrique(b)}\\\\times ${ecritureParentheseSiNegatif(alpha)}${ecritureAlgebrique(c)}=${r}$.` }\n }\n this.reponse = r\n }\n this.canEnonce = this.question\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDePublication","uuid","ref","EcondDegreAbscisseOrdonneeSommet","Exercice","nomF","a","b","c","r","alpha","nom","choice","randint","FractionEtendue","reduirePolynomeDegre3","ecritureParentheseSiNegatif","ecritureAlgebrique"],"mappings":"kFASY,MAACA,EAAQ,+DACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SACVC,EAAoB,aAEjC;AAAA;AAAA,GAIY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAoC,CAC1DC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAO,CACX,CAAC,GAAG,EAAG,CAAC,GAAG,EAAG,CAAC,GAAG,EAAG,CAAC,GAAG,EACzB,CAAC,GAAG,CACL,EACD,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAOC,EACnBC,EAAO,CAAC,GAAM,EAAK,CAAC,GACtB,KAAK,iBAAmB,gBACxBN,EAAIO,EAAQ,GAAI,EAAG,CAAC,EACpBN,EAAIM,EAAQ,GAAI,CAAC,EACjBL,EAAIK,EAAQ,GAAI,CAAC,EACjBF,EAAMC,EAAOP,CAAI,EACjBI,EAAI,IAAIK,EAAgB,CAACP,EAAG,EAAID,CAAC,EACjC,KAAK,SAAW,SAASK,CAAG;AAAA;AAAA,SAEzBA,CAAG,OAAOI,EAAsB,EAAGT,EAAGC,EAAGC,CAAC,CAAC;AAAA,qEACiBG,CAAG,MAElE,KAAK,WAAa,IAAIA,CAAG;AAAA;AAAA,sDAEuBJ,CAAC,aAAaS,EAA4BV,CAAC,CAAC,OAAOG,EAAE,WAAW,GAAGA,EAAE,4BAA2B,CAAE,KAClJ,KAAK,QAAUA,IAEf,KAAK,iBAAmB,SACxBH,EAAIO,EAAQ,GAAI,EAAG,CAAC,EACpBN,EAAIM,EAAQ,GAAI,CAAC,EAAI,EAAIP,EACzBE,EAAIK,EAAQ,GAAI,CAAC,EACjBH,EAAQ,CAACH,GAAK,EA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