File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can4C02-bTvmpRlZ.js.map
{"version":3,"file":"can4C02-bTvmpRlZ.js","sources":["../../src/exercices/can/4e/can4C02.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { fraction, obtenirListeFractionsIrreductibles } from '../../../modules/fractions.js'\nimport Exercice from '../../Exercice.js'\nexport const titre = 'Trouver l’opposé ou l’inverse d’une fraction'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\nexport const dateDeModifImportante = '05/12/2021'\n/*!\n * @author Jean-Claude Lhote\n * Créé pendant l'été 2021\n * Référence can4C02\n */\nexport const uuid = '87d2f'\nexport const ref = 'can4C02'\nexport default function OpposeDeFraction () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.formatChampTexte = 'largeur25 inline'\n this.formatInteractif = 'fractionEgale'\n this.nouvelleVersion = function () {\n const a = choice(obtenirListeFractionsIrreductibles())\n const c = a.d\n let b, d, e\n\n switch (choice(['a', 'b', 'c', 'd', 'e'])) { //\n case 'a':\n b = a.n\n d = fraction(b, c)\n this.question = `Quel est l'opposé de $\\\\dfrac{${b}}{${c}}$ ? `\n this.correction = `Deux nombres sont opposés lorsque leur somme est nulle.<br>\n Ainsi, l'opposé de $\\\\dfrac{${b}}{${c}}$ est $-${d.texFraction}$ car $\\\\dfrac{${b}}{${c}}+\\\\left(-${d.texFraction}\\\\right)=0$.`\n this.reponse = d.oppose()\n break\n case 'b' :\n b = a.n * (-1)\n d = fraction(b, c)\n this.question = `Quel est l'opposé de $\\\\dfrac{${b}}{${c}}$ ? `\n this.correction = `Deux nombres sont opposés lorsque leur somme est nulle.<br>\n Ainsi, l'opposé de $\\\\dfrac{${b}}{${c}}$ est $\\\\dfrac{${-b}}{${c}}$ car $\\\\dfrac{${b}}{${c}}+\\\\dfrac{${-b}}{${c}}=0$.`\n this.reponse = d.oppose()\n break\n\n case 'c' :\n b = a.n\n d = fraction(b, c)\n this.question = `Quel est l'opposé de $-\\\\dfrac{${b}}{${c}}$ ?`\n this.correction = `Deux nombres sont opposés lorsque leur somme est nulle.<br>\n Ainsi, l'opposé de $-\\\\dfrac{${b}}{${c}}$ est $${d.texFraction}$ car $-\\\\dfrac{${b}}{${c}}+${d.texFraction}=0$.`\n this.reponse = d\n break\n case 'd' :\n b = a.n\n d = fraction(b, c)\n e = fraction(c, b)\n this.question = `Quel est l'inverse de $${d.texFraction}$ ?`\n this.correction = `Deux nombres sont inverses l'un de l'autre lorsque leur produit vaut $1$.<br>\n Ainsi, l'inverse de $\\\\dfrac{${b}}{${c}}$ est $${e.texFraction}$ car $${d.texFraction}\\\\times ${e.texFraction}=1$.`\n this.reponse = e\n break\n case 'e' :\n b = a.n\n d = fraction(b, c)\n e = fraction(c, b)\n this.question = `Quel est l'inverse de $-\\\\dfrac{${b}}{${c}}$ ?`\n this.correction = `Deux nombres sont inverses l'un de l'autre lorsque leur produit vaut $1$.<br>\n Ainsi, l'inverse de $-\\\\dfrac{${b}}{${c}}$ est $-${e.texFraction}$ car $-${d.texFraction}}\\\\times \\\\left(-${e.texFraction}\\\\right)=1$ .`\n this.reponse = e.oppose()\n break\n }\n this.canEnonce = this.question\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDeModifImportante","uuid","ref","OpposeDeFraction","Exercice","a","choice","obtenirListeFractionsIrreductibles","c","b","d","e","fraction"],"mappings":"8DAGY,MAACA,EAAQ,+CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SACVC,EAAwB,aACrC;AAAA;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAoB,CAC1CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,i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