File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can2L05-7WWHrb8o.js.map
{"version":3,"file":"can2L05-7WWHrb8o.js","sources":["../../src/exercices/can/2e/can2L05.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { ecritureParentheseSiNegatif, reduireAxPlusB } from '../../../lib/outils/ecritures'\nimport { sp } from '../../../lib/outils/outilString.js'\nimport Exercice from '../../deprecatedExercice.js'\nimport { fraction } from '../../../modules/fractions.js'\nimport { randint } from '../../../modules/outils.js'\nexport const titre = 'Résoudre une inéquation'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const dateDeModifImportante = '21/05/2023'\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence can2L05 // pour l'instant\n * Date de publication 24/10/2021 modifié le 21/05/23 interactif n'est plus un qcm\n*/\nexport const uuid = '96a78'\nexport const ref = 'can2L05'\nexport default function SolutionInequation () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.spacing = 3\n this.formatChampTexte = 'largeur15 inline lycee'\n // Dans un exercice simple, ne pas mettre de this.listeQuestions = [] ni de this.consigne\n this.nouvelleVersion = function () {\n let a, b, maFraction, n\n switch (choice([1, 2, 3, 4, 5, 6, 7, 8])) { //\n case 1 :// cas a>0\n a = randint(2, 6)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}>0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg]${maFraction.texFractionSimplifiee}${sp(1)} ;${sp(1)} +\\\\infty\\\\bigg[$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x>${-b}$<br>\n En divisant par $${a}$ dans chaque membre, on obtient :<br>\n $x>${maFraction.texFractionSimplifiee}$<br>\n Les solutions sont les nombres strictement supérieurs à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$]${-n};+\\\\infty[$`]\n break\n case 2 :// cas a>0\n a = randint(2, 6)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}\\\\geqslant 0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg[${maFraction.texFractionSimplifiee}${sp(1)} ;${sp(1)} +\\\\infty\\\\bigg[$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x\\\\geqslant${-b}$<br>\n En divisant par $${a}$ dans chaque membre, on obtient :<br>\n $x\\\\geqslant${maFraction.texFractionSimplifiee}$<br>\n Les solutions sont les nombres supérieurs ou égaux à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$[${-n};+\\\\infty[$`]\n break\n case 3 :// cas a>0\n a = randint(2, 6)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}\\\\leqslant 0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg]-\\\\infty${sp(1)} ; ${sp(1)}${maFraction.texFractionSimplifiee} \\\\bigg]$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x\\\\leqslant${-b}$<br>\n En divisant par $${a}$ dans chaque membre, on obtient :<br>\n $x\\\\leqslant${maFraction.texFractionSimplifiee}$<br>\n Les solutions sont les nombres inférieurs ou égaux à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$]-\\\\infty;${-n}]$`]\n break\n case 4 :// cas a>0\n a = randint(2, 6)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}< 0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg]-\\\\infty${sp(1)} ; ${sp(1)}${maFraction.texFractionSimplifiee} \\\\bigg[$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x<${-b}$<br>\n En divisant par $${a}$ dans chaque membre, on obtient :<br>\n $x<${maFraction.texFractionSimplifiee}$<br>\n Les solutions sont les nombres strictement inférieurs à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$]-\\\\infty;${-n}[$`]\n\n break\n\n case 5:// cas a<0\n a = randint(-6, -2)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}>0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg]-\\\\infty${sp(1)} ;${sp(1)}${maFraction.texFractionSimplifiee} \\\\bigg[$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x>${-b}$<br>\n En divisant par $(${a})$ dans chaque membre, on obtient :<br>\n $x$ ${texteEnCouleur(' $<$ ')}$${-n}$ ${sp(3)}\n ${texteEnCouleur('(quand on divise par un nombre strictement négatif, on change le sens de l’inégalité).')}<br>\n Les solutions sont les nombres strictement inférieurs à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$]-\\\\infty;${-n}[$`]\n break\n case 6:// cas a<0\n a = randint(-6, -2)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}\\\\geqslant 0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg]-\\\\infty${sp(1)} ;${sp(1)} ${maFraction.texFractionSimplifiee} \\\\bigg]$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x\\\\geqslant${-b}$<br>\n En divisant par $(${a})$ dans chaque membre, on obtient :<br>\n $x$ ${texteEnCouleur(' $\\\\leqslant$ ')}$${maFraction.texFractionSimplifiee}$ ${sp(3)}\n ${texteEnCouleur('(quand on divise par un nombre strictement négatif, on change le sens de l’inégalité).')}<br>\n Les solutions sont les nombres inférieurs ou égaux à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$]-\\\\infty;${-n}]$`]\n break\n case 7:// cas a<0\n a = randint(-6, -2)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}\\\\leqslant 0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg[${maFraction.texFractionSimplifiee}${sp(1)} ;${sp(1)} +\\\\infty\\\\bigg[$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x\\\\leqslant${-b}$<br>\n En divisant par $(${a})$ dans chaque membre, on obtient :<br>\n $x$ ${texteEnCouleur(' $\\\\geqslant$ ')}$${maFraction.texFractionSimplifiee}$ ${sp(3)}\n ${texteEnCouleur('(quand on divise par un nombre strictement négatif, on change le sens de l’inégalité).')}<br>\n Les solutions sont les nombres supérieurs ou égaux à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$[${-n};+\\\\infty[$`]\n break\n case 8:// cas a<0\n a = randint(-6, -2)\n n = randint(2, 7) * choice([-1, 1])\n b = n * a\n maFraction = fraction(-b, a)\n this.question = `Quel est l'ensemble des solutions $S$ de l'inéquation $${reduireAxPlusB(a, b)}< 0$ ?`\n if (this.interactif) {\n this.question += '<br>$S=$'\n }\n this.correction = `L'ensemble de solutions est : ${texteEnCouleur(` $\\\\bigg]${maFraction.texFractionSimplifiee}${sp(1)} ;${sp(1)} +\\\\infty\\\\bigg[$`)}.<br>\n En ajoutant $${ecritureParentheseSiNegatif(-b)}$ dans chaque membre, on obtient :<br>\n $${a}x<${-b}$<br>\n En divisant par $(${a})$ dans chaque membre, on obtient :<br>\n $x$ ${texteEnCouleur(' $>$ ')}$${maFraction.texFractionSimplifiee}$ ${sp(3)}\n ${texteEnCouleur('(quand on divise par un nombre strictement négatif, on change le sens de l’inégalité).')}<br>\n Les solutions sont les nombres strictement supérieurs à $${maFraction.texFractionSimplifiee}$. `\n this.reponse = [`$]${-n};+\\\\infty[$`]\n break\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDeModifImportante","uuid","ref","SolutionInequation","Exercice","a","b","maFraction","choice","randint","fraction","reduireAxPlusB","texteEnCouleur","sp","ecritureParentheseSiNegatif"],"mappings":"0FAOY,MAACA,EAAQ,0BACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAwB,aAOxBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAsB,CAC5CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,QAAU,EACf,KAAK,iBAAmB,yBAExB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAGC,EAAY,EACtB,OAAQC,EAAO,CAAC,EAAG,EAAG,EAAG,EAAG,EAA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