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/can3M01-grsGlso0.js.map
{"version":3,"file":"can3M01-grsGlso0.js","sources":["../../src/exercices/can/3e/can3M01.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../Exercice.js'\nexport const titre = 'Calculer l’aire ou un périmètre d’un carré'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n\n/*!\n * @author Gilles Mora\n  * Créé pendant l'été 2021\n * Référence can3M01\n*/\nexport const uuid = 'db589'\nexport const ref = 'can3M01'\nexport default function CarreAire () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.formatChampTexte = 'largeur15 inline'\n  this.nouvelleVersion = function () {\n    let a, c\n    switch (choice(['a', 'b'])) {\n      case 'a':\n        a = randint(1, 10)\n\n        this.question = `Quelle est l'aire d'un carré  dont le périmètre est $${4 * a}$ cm ?`\n        this.reponse = a * a\n        this.correction = `Le côté du carré est $${4 * a}\\\\div 4=${a}$, donc son aire est : $${a}\\\\times ${a}=${a ** 2}$ cm$^2$.`\n        this.optionsChampTexte = { texteApres: ' cm$^2$' }\n        this.canEnonce = this.question// 'Compléter'\n        this.canReponseACompleter = '$\\\\ldots$ cm$^2$'\n        break\n      case 'b':\n        a = randint(1, 10)\n        c = a * a\n        this.question = `Déterminer le périmètre  d'un carré d'aire $${c}$ cm$^2$. `\n        this.reponse = 4 * a\n        this.correction = `Le côté du carré est $\\\\sqrt{${c}}=${a}$. Son périmètre est donc $4\\\\times ${a}=${4 * a}$ cm.`\n        this.optionsChampTexte = { texteApres: ' cm' }\n        this.canEnonce = this.question// 'Compléter'\n        this.canReponseACompleter = '$\\\\ldots$ cm'\n        break\n    }\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","CarreAire","Exercice","a","c","choice","randint"],"mappings":"sDAGY,MAACA,EAAQ,6CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,EAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAa,CACnCC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EACvB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EACP,OAAQC,EAAO,CAAC,IAAK,GAAG,CAAC,EAAC,CACxB,IAAK,IACHF,EAAIG,EAAQ,EAAG,EAAE,EAEjB,KAAK,SAAW,wDAAwD,EAAIH,CAAC,SAC7E,KAAK,QAAUA,EAAIA,EACnB,KAAK,WAAa,yBAAyB,EAAIA,CAAC,WAAWA,CAAC,2BAA2BA,CAAC,WAAWA,CAAC,IAAIA,GAAK,CAAC,YAC9G,KAAK,kBAAoB,CAAE,WAAY,SAAW,EAClD,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,mBAC5B,MACF,IAAK,IACHA,EAAIG,EAAQ,EAAG,EAAE,EACjBF,EAAID,EAAIA,EACR,KAAK,SAAW,+CAA+CC,CAAC,aAChE,KAAK,QAAU,EAAID,EACnB,KAAK,WAAa,gCAAgCC,CAAC,KAAKD,CAAC,uCAAuCA,CAAC,IAAI,EAAIA,CAAC,QAC1G,KAAK,kBAAoB,CAAE,WAAY,KAAO,EAC9C,KAAK,UAAY,KAAK,SACtB,KAAK,qBAAuB,eAC5B,KACH,CACF,CACH"}