File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can2L08-vRcR-qRX.js.map
{"version":3,"file":"can2L08-vRcR-qRX.js","sources":["../../src/exercices/can/2e/can2L08.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { ecritureAlgebrique, 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 = 'Résoudre une équation du type $\\\\dfrac{x+a}{b}=c$'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const dateDePublication = '04/03/2022'\n\n/**\n *\n * @author Gilles Mora\n * Référence can2L08\n*/\nexport const uuid = 'c1123'\nexport const ref = 'can2L08'\nexport default function ResoudreEquationAvecQuotient () {\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 a = randint(-10, 10, 0)\n const b = randint(-10, 10, [-1, 0, 1])\n const c = randint(-10, 10, 0)\n switch (choice([1])) {\n case 1 :\n if (!this.interactif) { this.question = ` Résoudre l'équation $\\\\dfrac{x${ecritureAlgebrique(a)}}{${b}}=${c}$.` } else { this.question = ` Donner la solution de l'équation $\\\\dfrac{x${ecritureAlgebrique(a)}}{${b}}=${c}$.` }\n this.correction = `On multiplie par $${b}$ chacun des deux membres, puis on`\n if (a > 0) { this.correction += ` retranche $${a}$.<br>` } else { this.correction += ` ajoute $${abs(a)}$.<br>` }\n this.correction += `$\\\\bullet$ En multipliant par $${b}$, on obtient : <br>\n $x${ecritureAlgebrique(a)}=${c}\\\\times ${ecritureParentheseSiNegatif(b)}$, soit $x${ecritureAlgebrique(a)}=${c * b}$<br>`\n if (a > 0) {\n this.correction += `$\\\\bullet$ En retranchant $${a}$, on obtient : <br>\n $x= ${c * b}-${ecritureParentheseSiNegatif(a)}$,`\n } else {\n this.correction += `$\\\\bullet$ En ajoutant $${abs(a)}$, on obtient : <br>\n $x= ${c * b}+${abs(a)}$,`\n }\n this.correction += ` soit $x=${b * c - a}$. <br><br>\n L'équation a pour solution : $${b * c - a}$.`\n this.reponse = b * c - a\n break\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","uuid","ref","ResoudreEquationAvecQuotient","Exercice","a","randint","b","c","choice","ecritureAlgebrique","abs","ecritureParentheseSiNegatif"],"mappings":"2EAKY,MAACA,EAAQ,oDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAoB,aAOpBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAgC,CACtDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EAEvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAQ,IAAK,GAAI,CAAC,EACtBC,EAAID,EAAQ,IAAK,GAAI,CAAC,GAAI,EAAG,CAAC,CAAC,EAC/BE,EAAIF,EAAQ,IAAK,GAAI,CAAC,EAC5B,OAAQG,EAAO,CAAC,CAAC,CAAC,EAAC,CACjB,IAAK,GACE,KAAK,WAA+G,KAAK,SAAW,+CAA+CC,EAAmBL,CAAC,CAAC,KAAKE,CAAC,KAAKC,CAAC,KAAjM,KAAK,SAAW,kCAAkCE,EAAmBL,CAAC,CAAC,KAAKE,CAAC,KAAKC,CAAC,KAC3G,KAAK,WAAa,qBAAqBD,CAAC,qCACpCF,EAAI,EAAK,KAAK,YAAc,eAAeA,CAAC,SAAkB,KAAK,YAAc,YAAYM,EAAIN,CAAC,CAAC,SACvG,KAAK,YAAc,mCAAmCE,CAAC;AAAA,aAClDG,EAAmBL,CAAC,CAAC,IAAI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