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/can3G01-IpsalaQp.js.map
{"version":3,"file":"can3G01-IpsalaQp.js","sources":["../../src/exercices/can/3e/can3G01.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { randint } from '../../../modules/outils.js'\nimport Exercice from '../../Exercice.js'\nexport const titre = 'Calculer et utiliser un agrandissement/réduction'\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 can3G01\n*/\nexport const uuid = 'dcc68'\nexport const ref = 'can3G01'\nexport default function AgrandissementReduction () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.formatChampTexte = 'largeur15 inline'\n  this.nouvelleVersion = function () {\n    let a, b, c\n    switch (choice(['a', 'b', 'c', 'c'])) {\n      case 'a':\n        a = randint(2, 10)\n\n        this.question = `Les longueurs d'un triangle sont multipliées par $${a}$.<br>\n\n        Par quelle valeur est multipliée son aire ?\n        `\n        this.optionsChampTexte = { texteApres: '' }\n        this.reponse = a * a\n        this.correction = ` Si les longueurs sont multiplées par $k$, les aires sont multipliées par $k^2$, soit ici par $${a}^2=${a ** 2}$.<br>\n        `\n        break\n      case 'b':\n        a = randint(2, 10)\n        b = a * a\n        this.question = `L'aire d'un quadrilatère a été multipliée par $${b}$.<br>\n\n        Par quelle valeur ont été multipliées les longueurs de ce quadrilatère ?\n        `\n        this.optionsChampTexte = { texteApres: '' }\n        this.reponse = a\n        this.correction = ` Si les aires sont multiplées par $k$, les longueurs sont multipliées par $\\\\sqrt{k}$, soit ici par $\\\\sqrt{${b}}=${a}$.<br>\n        `\n        break\n      case 'c':\n        a = randint(2, 4)// aire\n        c = randint(2, 4)// coefficient\n\n        this.question = `Les longueurs d'un rectangle de $${a}$ cm$^2$  sont multipliées par $${c}$.<br>\n\n            Quelle est l'aire du rectangle ainsi obtenu ?        `\n        this.optionsChampTexte = { texteApres: ' cm$^2$' }\n        this.reponse = a * c * c\n        this.correction = ` Si les longueurs sont multiplées par $k$, les aires sont multipliées par $k^2$, soit ici par $${c}^2=${c ** 2}$.<br>\n            Ainsi, l'aire du nouveau rectangle est : $${a}\\\\times ${c * c}=${a * c * c}$ cm$^2$.\n    `\n        break\n    }\n    this.canEnonce = this.question// 'Compléter'\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","AgrandissementReduction","Exercice","a","b","c","choice","randint"],"mappings":"sDAGY,MAACA,EAAQ,mDACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SAEvB;AAAA;AAAA;AAAA;AAAA,EAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA2B,CACjDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,iBAAmB,mBACxB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAGC,EACV,OAAQC,EAAO,CAAC,IAAK,IAAK,IAAK,GAAG,CAAC,EAAC,CAClC,IAAK,IACHH,EAAII,EAAQ,EAAG,EAAE,EAEjB,KAAK,SAAW,qDAAqDJ,CAAC;AAAA;AAAA;AAAA,UAItE,KAAK,kBAAoB,CAAE,WAAY,EAAI,EAC3C,KAAK,QAAUA,EAAIA,EACnB,KAAK,WAAa,kGAAkGA,CAAC,MAAMA,GAAK,CAAC;AAAA,UAEjI,MACF,IAAK,IACHA,EAAII,EAAQ,EAAG,EAAE,EACjBH,EAAID,EAAIA,EACR,KAAK,SAAW,kDAAkDC,CAAC;AAAA;AAAA;AAAA,UAInE,KAAK,kBAAoB,CAA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