File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can2L06-ugcTbV_Z.js.map
{"version":3,"file":"can2L06-ugcTbV_Z.js","sources":["../../src/exercices/can/2e/can2L06.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport Exercice from '../../deprecatedExercice.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Développer avec les égalités remarquables'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const dateDePublication = '25/10/2021'\n\n/**\n * utilisation des égalités remarquables pour développer\n * @author Gilles Mora\n * Référence can2L06\n*/\nexport const uuid = '4c675'\nexport const ref = 'can2L06'\nexport default function DevelopperEgalitesRemarquables () {\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 inconnue = choice(['x', 'y'])\n const a = randint(1, 9)\n const b = randint(2, 5)\n switch (choice([1, 2, 3, 4, 5, 6])) {\n case 1 :\n this.question = ` Développer $(${inconnue}+${a})^2$.` // (x+a)²\n this.correction = `On utilise l'égalité remarquable $(a+b)^2=a^2+2ab+b^2$ avec $a=${inconnue}$ et $b=${a}$.<br>\n $(${inconnue}+${a})^2=${inconnue}^2+2 \\\\times ${a} \\\\times ${inconnue}+${a}^2=${inconnue}^2+${2 * a}${inconnue}+${a * a}$`\n this.reponse = [`${inconnue}^2+${2 * a}${inconnue}+${a * a}`]\n break\n case 2 :\n this.question = ` Développer $(${inconnue}-${a})^2$.` // (x-a)²\n this.correction = `On utilise l'égalité remarquable $(a-b)^2=a^2-2ab+b^2$ avec $a=${inconnue}$ et $b=${a}$.<br>\n $(${inconnue}-${a})^2=${inconnue}^2-2 \\\\times ${a} \\\\times ${inconnue}+${a}^2=${inconnue}^2-${2 * a}${inconnue}+${a * a}$`\n this.reponse = [`${inconnue}^2-${2 * a}${inconnue}+${a * a}`]\n break\n case 3 :\n this.question = `Développer $(x-${a})(x+${a})$.` // (x-a)(x+a)\n this.correction = `On utilise l'égalité remarquable $(a+b)(a-b)=a^2-b^2$ avec $a=x$ et $b=${a}$.<br>\n $(x-${a})(x+${a})=x^2-${a}^2=x^2-${a * a}$.`\n this.reponse = [`x^2-${a * a}`]\n break\n case 4 :\n this.question = `Développer $(${b}x+${a})^2$.` // (bx+a)² b>1\n this.correction = `On utilise l'égalité remarquable $(a+b)^2=a^2+2ab+b^2$ avec $a=${b}x$ et $b=${a}$.<br>\n $(${b}x+${a})^2=(${b}x)^2+2 \\\\times ${b}x \\\\times ${a} + ${a}^2=${b * b}x^2+${2 * b * a}x+${a * a}$`\n this.reponse = [`${b * b}x^2+${2 * b * a}x+${a * a}`]\n break\n case 5 :\n this.question = `Développer $(${b}x-${a})^2$.` // (bx-a)² b>1\n this.correction = `On utilise l'égalité remarquable $(a+b)^2=a^2-2ab+b^2$ avec $a=${b}x$ et $b=${a}$.<br>\n $(${b}x-${a})^2=(${b}x)^2-2 \\\\times ${b}x \\\\times ${a} + ${a}^2=${b * b}x^2-${2 * b * a}x+${a * a}$`\n this.reponse = [`${b * b}x^2-${2 * b * a}x+${a * a}`]\n break\n case 6 :\n this.question = `Développer $(${b}x-${a})(${b}x+${a})$.` // (bx-a)(bx+a) b>1\n this.correction = `On utilise l'égalité remarquable $(a+b)(a-b)=a^2-b^2$ avec $a=${b}x$ et $b=${a}$.<br>\n $(${b}x-${a})(${b}x+${a})=(${b}x)^2-${a}^2=${b * b}x^2-${a * a}$`\n this.reponse = [`${b * b}x^2-${a * a}`]\n break\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","uuid","ref","DevelopperEgalitesRemarquables","Exercice","inconnue","choice","a","randint","b"],"mappings":"sDAGY,MAACA,EAAQ,4CACRC,EAAkB,G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