File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/canExC01-s5VSBoOU.js.map
{"version":3,"file":"canExC01-s5VSBoOU.js","sources":["../../src/exercices/can/Ex/canExC01.js"],"sourcesContent":["import Exercice from '../../Exercice.js'\nimport { randint } from '../../../modules/outils.js'\nimport { complex, add } from 'mathjs'\nexport const titre = 'Somme de nombres complexes'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCHybride'\nexport const dateDePublication = '26/10/2021'\n\n/**\n * Question de can : calcul de la somme de deux nombres complexes\n * @author Jean-Claude Lhote\n * Référence canExC01\n*/\nexport const uuid = '71292'\nexport const ref = 'canExC01'\nexport default function SommeDeComplexes () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.nbQuestions = 1\n this.typeExercice = 'simple'\n\n this.nouvelleVersion = function () {\n const z1 = complex(randint(-5, 5), randint(-5, 5))\n const z2 = complex(randint(-5, 5), randint(-5, 5))\n this.question = `On donne $~~a = ${z1.toString()}~~$ et $~~b = ${z2.toString()}$.<br>Calcule $a + b$.`\n this.correction = `$${z1.toString()} + ${z2.toString()} = ${add(z1, z2).toString()}$`\n this.reponse = add(z1, z2)\n this.autoCorrection[0] = {\n enonce: this.question,\n propositions: [\n {\n type: 'AMCNum',\n propositions: {\n texte: this.correction\n },\n reponse: {\n valeur: add(z1, z2).re,\n digits: 2,\n deciams: 0,\n signe: true,\n approx: 0\n }\n },\n {\n type: 'AMCNum',\n propositions: {\n texte: ''\n },\n reponse: {\n valeur: add(z1, z2).im,\n digits: 2,\n deciams: 0,\n signe: true,\n approx: 0\n }\n }\n ]\n }\n }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDePublication","uuid","ref","SommeDeComplexes","Exercice","z1","complex","randint","z2","add"],"mappings":"+DAGY,MAACA,EAAQ,6BACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,aACVC,EAAoB,aAOpBC,EAAO,QACPC,EAAM,WACJ,SAASC,GAAoB,CAC1CC,EAAS,KAAK,IAAI,EAClB,KAAK,YAAc,EACnB,KAAK,aAAe,SAEpB,KAAK,gBAAkB,UAAY,CACjC,MAAMC,EAAKC,EAAQC,EAAQ,GAAI,CAAC,EAAGA,EAAQ,GAAI,CAAC,CAAC,EAC3CC,EAAKF,EAAQC,EAAQ,GAAI,CAAC,EAAGA,EAAQ,GAAI,CAAC,CAAC,EACjD,KAAK,SAAW,mBAAmBF,EAAG,UAAU,iBAAiBG,EAAG,SAAU,CAAA,yBAC9E,KAAK,WAAa,IAAIH,EAAG,SAAQ,CAAE,MAAMG,EAAG,SAAQ,CAAE,MAAMC,EAAIJ,EAAIG,CAAE,EAAE,SAAU,CAAA,IAClF,KAAK,QAAUC,EAAIJ,EAAIG,CAAE,EACzB,KAAK,eAAe,CAAC,EAAI,CACvB,OAAQ,KAAK,SACb,aAAc,CACZ,CACE,KAAM,SACN,aAAc,CACZ,MAAO,KAAK,UACb,EACD,QAAS,CACP,OAAQC,EAAIJ,EAAIG,CAAE,EAAE,GACpB,OAAQ,EACR,QAAS,EACT,MAAO,GACP,OAAQ,CACT,CACF,EACD,CACE,KAAM,SACN,aAAc,CACZ,MAAO,EACR,EACD,QAAS,CACP,OAAQC,EAAIJ,EAAIG,CAAE,EAAE,GACpB,OAAQ,EACR,QAAS,EACT,MAAO,GACP,OAAQ,CACT,CACF,CACF,CACF,CACF,CACH"}