File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can3C12-paXkCsOP.js.map
{"version":3,"file":"can3C12-paXkCsOP.js","sources":["../../src/exercices/can/3e/can3C12.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../Exercice.js'\nexport const titre = 'Encadrer une racine carrée'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/*!\n * @author Gilles Mora\n */\nexport const uuid = '0ad86'\nexport const ref = 'can3C12'\nexport default function EncadrementRacineCarree () {\n Exercice.call(this)\n this.typeExercice = 'simple'\n this.formatChampTexte = 'largeur15 inline'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n this.nouvelleVersion = function () {\n const a = randint(3, 99, [4, 9, 16, 25, 36, 49, 64, 81]) // numérateur\n if (choice([true, false])) {\n this.reponse = Math.floor(Math.sqrt(a))\n this.question = `$a\\\\leqslant \\\\sqrt{${a}}\\\\leqslant b$ est un encadrement de $\\\\sqrt{${a}}$ par deux entiers consécutifs. <br>\n \n Quelle est la valeur de $a$ ? `\n this.correction = ` On cherche le carré parfait le plus proche de $${a}$ inférieur à $${a}$ : $${Math.floor(Math.sqrt(a)) ** 2}=${Math.floor(Math.sqrt(a))}^2$. Ainsi : $a=${Math.floor(Math.sqrt(a))}$`\n } else {\n this.reponse = Math.ceil(Math.sqrt(a))\n this.question = `$a\\\\leqslant \\\\sqrt{${a}}\\\\leqslant b$ est un encadrement de $\\\\sqrt{${a}}$ par deux entiers consécutifs. <br>\n \n Quelle est la valeur de $b$ ? `\n this.correction = ` On cherche le carré parfait le plus proche de $${a}$ supérieur à $${a}$ : $${Math.ceil(Math.sqrt(a)) ** 2}=${Math.ceil(Math.sqrt(a))}^2$. Ainsi : $b=${Math.ceil(Math.sqrt(a))}$`\n }\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","EncadrementRacineCarree","Exercice","a","randint","choice"],"mappings":"iDAGY,MAACA,EAAQ,6BACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA,GAGY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA2B,CACjDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,iBAAmB,mBACxB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAIC,EAAQ,EAAG,GAAI,CAAC,EAAG,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,EAAE,CAAC,EACnDC,EAAO,CAAC,GAAM,EAAK,CAAC,GACtB,KAAK,QAAU,KAAK,MAAM,KAAK,KAAKF,CAAC,CAAC,EACtC,KAAK,SAAW,uBAAuBA,CAAC,gDAAgDA,CAAC;AAAA;AAAA,sCAGzF,KAAK,WAAa,mDAAmDA,CAAC,kBAAkBA,CAAC,QAAQ,KAAK,MAAM,KAAK,KAAKA,CAAC,CAAC,GAAK,CAAC,IAAI,KAAK,MAAM,KAAK,KAAKA,CAAC,CAAC,CAAC,mBAAmB,KAAK,MAAM,KAAK,KAAKA,CAAC,CAAC,CAAC,MAErM,KAAK,QAAU,KAAK,KAAK,KAAK,KAAKA,CAAC,CAAC,EACrC,KAAK,SAAW,uBAAuBA,CAAC,gDAAgDA,CAAC;AAAA;AAAA,sCAGzF,KAAK,WAAa,mDAAmDA,CAAC,kBAAkBA,CAAC,QAAQ,KAAK,KAAK,KAAK,KAAKA,CAAC,CAAC,GAAK,CAAC,IAAI,KAAK,KAAK,KAAK,KAAKA,CAAC,CAAC,CAAC,mBAAmB,KAAK,KAAK,KAAK,KAAKA,CAAC,CAAC,CAAC,KAEpM,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,EAC7B,CACH"}