File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/1N12-eQcW1e4u.js.map
{"version":3,"file":"1N12-eQcW1e4u.js","sources":["../../src/exercices/1e/1N12.js"],"sourcesContent":["import { choice } from '../../lib/outils/arrayOutils'\nimport { texNombre } from '../../lib/outils/texNombre.js'\nimport Exercice from '../Exercice.js'\nimport { randint } from '../../modules/outils.js'\nexport const titre = 'Somme des termes d\\'une suite arithmétique'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n\nexport const dateDePublication = '30/11/2021'\n\n/**\n *\n * @author Rémi Angot\n * Référence 1N12\n*/\nexport const uuid = 'cfac9'\nexport const ref = '1N12'\nexport default class SommeSuiteArithmetique extends Exercice {\n constructor () {\n super()\n this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n this.nbQuestions = 2\n this.spacingCorr = 1.5\n this.consigneCorrection = 'Rappel : $1 + 2 + 3 + ... + n = \\\\dfrac{n(n + 1)}{2}$'\n }\n\n nouvelleVersion () {\n const u0 = randint(1, 10)\n const r = randint(3, 10)\n const n = randint(2, 4) * 10\n const u = choice(['u', 'v', 'w'])\n this.question = `Soit $${u}$ la suite arithmétique de premier terme $${u}_0 = ${u0}$ et de raison $${r}$.`\n this.question += `<br>Calculer $\\\\displaystyle S = ${u}_0 + ${u}_1 + ... + ${u}_{${n}} =\\\\sum_{k=0}^{k=${n}}${u}_k$.`\n this.reponse = (n + 1) * (u0 + u0 + n * r) / 2\n this.correction = `$S = ${u0} + (${u0} + ${r}) + (${u0} + 2\\\\times${r}) + ... + (${u0} + ${n} \\\\times ${r})$`\n this.correction += `<br>$\\\\phantom{S} = (\\\\underbrace{${u0} + ${u0} + ... + ${u0}}_{${n + 1}\\\\times ${u0}}) + ${r} \\\\times (1 + 2 + ... + ${n})$`\n this.correction += `<br>$\\\\phantom{S} = ${n + 1} \\\\times ${u0} + ${r} \\\\times \\\\dfrac{${n}\\\\times${n + 1}}{2}$`\n this.correction += `<br>$\\\\phantom{S} = ${texNombre(this.reponse)}$`\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","uuid","ref","SommeSuiteArithmetique","Exercice","u0","randint","r","n","u","choice","texNombre"],"mappings":"wDAIY,MAACA,EAAQ,4CACRC,EAAkB,GAClBC,EAAiB,WAEjBC,EAAoB,aAOpBC,EAAO,QACPC,EAAM,OACJ,MAAMC,UAA+BC,CAAS,CAC3D,aAAe,CACb,MAAO,EACP,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,YAAc,IACnB,KAAK,mBAAqB,uDAC3B,CAED,iBAAmB,CACjB,MAAMC,EAAKC,EAAQ,EAAG,EAAE,EAClBC,EAAID,EAAQ,EAAG,EAAE,EACjBE,EAAIF,EAAQ,EAAG,CAAC,EAAI,GACpBG,EAAIC,EAAO,CAAC,IAAK,IAAK,GAAG,CAAC,EAChC,KAAK,SAAW,SAASD,CAAC,6CAA6CA,CAAC,QAAQJ,CAAE,mBAAmBE,CAAC,KACtG,KAAK,UAAY,oCAAoCE,CAAC,QAAQA,CAAC,cAAcA,CAAC,KAAKD,CAAC,qBAAqBA,CAAC,IAAIC,CAAC,OAC/G,KAAK,SAAWD,EAAI,IAAMH,EAAKA,EAAKG,EAAID,GAAK,EAC7C,KAAK,WAAa,QAAQF,CAAE,OAAOA,CAAE,MAAME,CAAC,QAAQF,CAAE,cAAcE,CAAC,cAAcF,CAAE,MAAMG,CAAC,YAAYD,CAAC,KACzG,KAAK,YAAc,qCAAqCF,CAAE,MAAMA,CAAE,YAAYA,CAAE,MAAMG,EAAI,CAAC,WAAWH,CAAE,QAAQE,CAAC,2BAA2BC,CAAC,KAC7I,KAAK,YAAc,uBAAuBA,EAAI,CAAC,YAAYH,CAAE,MAAME,CAAC,oBAAoBC,CAAC,UAAUA,EAAI,CAAC,QACxG,KAAK,YAAc,uBAAuBG,EAAU,KAAK,OAAO,CAAC,GAClE,CACH"}