File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can5C22-WnDc2Bzc.js.map
{"version":3,"file":"can5C22-WnDc2Bzc.js","sources":["../../src/exercices/can/5e/can5C22.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texNombre } from '../../../lib/outils/texNombre.js'\nimport { randint } from '../../../modules/outils.js'\nimport Decimal from 'decimal.js'\nimport Exercice from '../../Exercice.js'\nimport FractionEtendue from '../../../modules/FractionEtendue.js'\nexport const titre = 'Passer d\\'un décimal à une fraction'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\nexport const dateDePublication = '31/10/2022'\n/*!\n * @author Gilles Mora\n */\n\nexport const uuid = '67f09'\nexport const ref = 'can5C22'\nexport default function DecimalVersFraction () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.nouvelleVersion = function () {\n let a, d, maFraction\n this.formatChampTexte = 'largeur15 inline'\n this.formatInteractif = 'fractionEgale'\n a = randint(1, 39, [10, 20, 30])\n switch (choice([1, 2, 3])) {\n case 1:// division par 10\n d = new Decimal(a).div(10)\n maFraction = new FractionEtendue(a, 10)\n this.correction = `Il y a plusieurs réponses possibles (une fraction simplifiée, une fraction non simplifiée, une fraction décimale). <br>\n $${texNombre(d, 1)}=\\\\dfrac{${texNombre(d * 10, 0)}}{10}${maFraction.texSimplificationAvecEtapes()}$ `\n break\n case 2:// division par 100\n d = new Decimal(a).div(100)\n maFraction = new FractionEtendue(a, 100)\n this.correction = `Il y a plusieurs réponses possibles (une fraction simplifiée, une fraction non simplifiée, une fraction décimale). <br>\n $${texNombre(d, 2)}=\\\\dfrac{${texNombre(d * 100, 2)}}{100}${maFraction.texSimplificationAvecEtapes()}$ `\n break\n\n case 3:// division par 1000\n a = choice([a, randint(201, 299, [210, 220, 230, 240, 250, 260, 270, 280, 290])])\n d = new Decimal(a).div(1000)\n maFraction = new FractionEtendue(a, 1000)\n this.correction = `Il y a plusieurs réponses possibles (une fraction simplifiée, une fraction non simplifiée, une fraction décimale). <br>\n $${texNombre(d, 3)}=\\\\dfrac{${texNombre(d * 1000, 3)}}{1000}${maFraction.texSimplificationAvecEtapes()}$ `\n break\n }\n this.question = `Écrire $${texNombre(d, 3)}$ sous la forme d'une fraction.`\n this.reponse = maFraction\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDePublication","uuid","ref","DecimalVersFraction","Exercice","a","d","maFraction","randint","choice","Decimal","FractionEtendue","texNombre"],"mappings":"2EAMY,MAACA,EAAQ,qCACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SACVC,EAAoB,aACjC;AAAA;AAAA,GAIY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAuB,CAC7CC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAGC,EAIV,OAHA,KAAK,iBAAmB,mBACxB,KAAK,iBAAmB,gBACxBF,EAAIG,EAAQ,EAAG,GAAI,CAAC,GAAI,GAAI,EAAE,CAAC,EACvBC,EAAO,CAAC,EAAG,EAAG,CAAC,CAAC,EAAC,CACvB,IAAK,GACHH,EAAI,IAAII,EAAQL,CAAC,EAAE,IAAI,EAAE,EACzBE,EAAa,IAAII,EAAgBN,EAAG,EAAE,EACtC,KAAK,WAAa;AAAA,WACfO,EAAUN,EAAG,CAAC,CAAC,YAAYM,EAAUN,EAAI,GAAI,CAAC,CAAC,QAAQC,EAAW,4BAA2B,CAAE,KAClG,MACF,IAAK,GACHD,EAAI,IAAII,EAAQL,CAAC,EAAE,IAAI,GAAG,EAC1BE,EAAa,IAAII,EAAgBN,EAAG,GAAG,EACvC,KAAK,WAAa;AAAA,WACfO,EAAUN,EAAG,CAAC,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