HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/canExC02-y7z8Zk4q.js.map
{"version":3,"file":"canExC02-y7z8Zk4q.js","sources":["../../src/exercices/can/Ex/canExC02.js"],"sourcesContent":["import Exercice from '../../Exercice.js'\nimport { randint } from '../../../modules/outils.js'\nimport { complex, multiply } from 'mathjs'\nexport const titre = 'produit 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 canExC02\n*/\nexport const uuid = '30cc1'\nexport const ref = 'canExC02'\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, 0), randint(-5, 5, 0))\n    const z2 = complex(0, randint(-5, 5, 0))\n    this.question = `On donne $~~a = ${z1.toString()}~~$ et $~~b = ${z2.toString()}$.<br>Calcule $a \\\\times b$.`\n    this.correction = `$${z1.toString()} \\\\times ${z2.toString()} = ${multiply(z1, z2).toString()}$`\n    this.reponse = multiply(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: multiply(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: multiply(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","multiply"],"mappings":"+DAGY,MAACA,EAAQ,+BACRC,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,EAAG,CAAC,EAAGA,EAAQ,GAAI,EAAG,CAAC,CAAC,EACjDC,EAAKF,EAAQ,EAAGC,EAAQ,GAAI,EAAG,CAAC,CAAC,EACvC,KAAK,SAAW,mBAAmBF,EAAG,UAAU,iBAAiBG,EAAG,SAAU,CAAA,+BAC9E,KAAK,WAAa,IAAIH,EAAG,SAAQ,CAAE,YAAYG,EAAG,SAAQ,CAAE,MAAMC,EAASJ,EAAIG,CAAE,EAAE,SAAU,CAAA,IAC7F,KAAK,QAAUC,EAASJ,EAAIG,CAAE,EAC9B,KAAK,eAAe,CAAC,EAAI,CACvB,OAAQ,KAAK,SACb,aAAc,CACZ,CACE,KAAM,SACN,aAAc,CACZ,MAAO,KAAK,UACb,EACD,QAAS,CACP,OAAQC,EAASJ,EAAIG,CAAE,EAAE,GACzB,OAAQ,EACR,QAAS,EACT,MAAO,GACP,OAAQ,CACT,CACF,EACD,CACE,KAAM,SACN,aAAc,CACZ,MAAO,EACR,EACD,QAAS,CACP,OAAQC,EAASJ,EAAIG,CAAE,EAAE,GACzB,OAAQ,EACR,QAAS,EACT,MAAO,GACP,OAAQ,CACT,CACF,CACF,CACF,CACF,CACH"}