File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can4C17-K_xGiFF1.js.map
{"version":3,"file":"can4C17-K_xGiFF1.js","sources":["../../src/exercices/can/4e/can4C17.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { randint } from '../../../modules/outils.js'\nimport FractionEtendue from '../../../modules/FractionEtendue.js'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Simplifier des fractions (cas simples)'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const dateDePublication = '07/09/2023'\n\n/*!\n * @author Gilles Mora\n * Référence can4C17\n */\n\nexport const uuid = '471bf'\nexport const ref = 'can4C17'\nexport default function SimplifierFractionSimple () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.formatChampTexte = 'largeur15 inline'\n this.formatInteractif = 'calcul'\n this.nouvelleVersion = function () {\n switch (choice([1, 2, 3])) { // 1, 2, 3, 4, 5, 6\n case 1 :\n {\n const n = randint(-10, 10, 0)\n const d = choice([-1, 1])\n this.reponse = new FractionEtendue(n, d).simplifie()\n this.question = `Écrire le plus simplement possible : $\\\\dfrac{${n}}{${d}}$.`\n this.correction = `$\\\\dfrac{${n}}{${d}}=${this.reponse}$`\n this.canEnonce = this.question\n this.canReponseACompleter = '' }\n break\n case 2 :{\n const n = randint(-10, 10, 0)\n const d = n * choice([-1, 1])\n this.reponse = new FractionEtendue(n, d).simplifie()\n this.question = `Écrire le plus simplement possible : $\\\\dfrac{${n}}{${d}}$.`\n this.correction = `$\\\\dfrac{${n}}{${d}}=${this.reponse}$`\n this.canEnonce = this.question\n this.canReponseACompleter = '' }\n break\n\n case 3 :{\n const d = randint(-10, 10, [-1, 0, 1])\n const n = d * choice([-10, 10])\n this.reponse = new FractionEtendue(n, d).simplifie()\n this.question = `Écrire le plus simplement possible : $\\\\dfrac{${n}}{${d}}$.`\n this.correction = `$\\\\dfrac{${n}}{${d}}=${this.reponse}$`\n this.canEnonce = this.question\n this.canReponseACompleter = '' }\n break\n }\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","dateDePublication","uuid","ref","SimplifierFractionSimple","Exercice","choice","n","randint","d","FractionEtendue"],"mappings":"6DAIY,MAACA,EAAQ,yCACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAoB,aAEjC;AAAA;AAAA;AAAA,GAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA4B,CAClDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,iBAAmB,SACxB,KAAK,gBAAkB,UAAY,CACjC,OAAQC,EAAO,CAAC,EAAG,EAAG,CAAC,CAAC,EAAC,CACvB,IAAK,GACH,CACE,MAAMC,EAAIC,EAAQ,IAAK,GAAI,CAAC,EACtBC,EAAIH,EAAO,CAAC,GAAI,CAAC,CAAC,EACxB,KAAK,QAAU,IAAII,EAAgBH,EAAGE,CAAC,EAAE,UAAW,EACpD,KAAK,SAAW,iDAAiDF,CAAC,KAAKE,CAAC,MACxE,KAAK,WAAa,YAAYF,CAAC,KAAKE,CAAC,KAAK,KAAK,OAAO,IACtD,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAAI,CAClC,MACF,IAAK,GAAG,CACN,MAAMF,EAAIC,EAAQ,IAAK,GAAI,CAAC,EACtBC,EAAIF,EAAID,EAAO,CAAC,GAAI,CAAC,CAAC,EAC5B,KAAK,QAAU,IAAII,EAAgBH,EAAGE,CAAC,EAAE,UAAW,EACpD,KAAK,SAAW,iDAAiDF,CAAC,KAAKE,CAAC,MACxE,KAAK,WAAa,YAAYF,CAAC,KAAKE,CAAC,KAAK,KAAK,OAAO,IACtD,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAAI,CAChC,MAEF,IAAK,GAAG,CACN,MAAMA,EAAID,EAAQ,IAAK,GAAI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