File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can4G07-S-ZUXmWB.js.map
{"version":3,"file":"can4G07-S-ZUXmWB.js","sources":["../../src/exercices/can/4e/can4G07.js"],"sourcesContent":["import { codageSegments } from '../../../lib/2d/codages.js'\nimport { point } from '../../../lib/2d/points.js'\nimport { segment } from '../../../lib/2d/segmentsVecteurs.js'\nimport { labelPoint } from '../../../lib/2d/textes.js'\nimport { choice } from '../../../lib/outils/arrayOutils'\nimport { creerNomDePolygone } from '../../../lib/outils/outilString.js'\nimport { texNombre } from '../../../lib/outils/texNombre.js'\nimport Exercice from '../../Exercice.js'\nimport { mathalea2d } from '../../../modules/2dGeneralites.js'\nimport { randint, calculANePlusJamaisUtiliser } from '../../../modules/outils.js'\nexport const titre = 'Calculer une longueur avec le théorème de Thalès (milieu)'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n\n/**\n * Modèle d'exercice très simple pour la course aux nombres\n * @author Gilles Mora\n * Référence can4G07\n * Date de publication septembre 2021\n*/\nexport const uuid = 'ae712'\nexport const ref = 'can4G07'\nexport default function CalculLongueurThalesMilieu () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.typeExercice = 'simple' // Cette ligne est très importante pour faire faire un exercice simple !\n this.formatChampTexte = 'largeur15 inline'\n this.nbQuestions = 1\n this.tailleDiaporama = 2\n // Dans un exercice simple, ne pas mettre de this.listeQuestions = [] ni de this.consigne\n\n this.nouvelleVersion = function () {\n let a, A, B, C, D, E, objets, nom\n if (choice([true, false])) {\n nom = creerNomDePolygone(5, ['QD'])\n a = randint(1, 9) + randint(1, 5) / 10 + randint(1, 9) / 100\n\n A = point(0, 0, nom[0], 'below')\n B = point(6, 0, nom[1], 'below')\n C = point(5, 4, nom[2], 'above')\n D = point(2.5, 2, nom[3], 'above')\n E = point(3, 0, nom[4], 'below')\n objets = []\n objets.push(segment(A, B), segment(D, E), segment(A, C), segment(B, C),\n codageSegments('||', 'blue', A, D, D, C), labelPoint(A, B, C, D, E))\n\n this.question = `$(${nom[3]}${nom[4]})//(${nom[1]}${nom[2]})$ et\n $${nom[3]}${nom[4]}=${texNombre(a)}$.<br>\n\n Calculer $${nom[1]}${nom[2]}$.<br>\n\n `\n this.question += mathalea2d({ xmin: -1, ymin: -1, xmax: 8, ymax: 5, pixelsParCm: 18, mainlevee: false, amplitude: 0.5, style: 'margin: auto' }, objets)\n this.correction = ` Les longueurs du triangle $${nom[0]}${nom[1]}${nom[2]}$ sont 2 fois plus grandes que les longueurs du triangle $${nom[0]}${nom[3]}${nom[4]}$.<br>\n Le triangle $${nom[0]}${nom[1]}${nom[2]}$ est un agrandissement du triangle $${nom[0]}${nom[3]}${nom[4]}$.<br>\n Ainsi : $${nom[1]}${nom[2]}=2\\\\times ${nom[3]}${nom[4]}=2\\\\times ${texNombre(a)}=${texNombre(2 * a)}$.\n `\n\n this.reponse = calculANePlusJamaisUtiliser(2 * a)\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = `$${nom[1]}${nom[2]}=\\\\ldots$`\n } else {\n nom = creerNomDePolygone(5, ['QD'])\n a = calculANePlusJamaisUtiliser((randint(1, 9) + randint(1, 5) / 10) * 2)\n A = point(0, 0, nom[0], 'below')\n B = point(6, 0, nom[1], 'below')\n C = point(5, 4, nom[2], 'above')\n D = point(2.5, 2, nom[3], 'above')\n E = point(3, 0, nom[4], 'below')\n objets = []\n objets.push(segment(A, B), segment(D, E), segment(A, C), segment(B, C),\n codageSegments('||', 'blue', A, D, D, C), labelPoint(A, B, C, D, E))\n\n this.question = `$(${nom[3]}${nom[4]})//(${nom[1]}${nom[2]})$ et\n $${nom[1]}${nom[2]}=${texNombre(a)}$. <br>\n\n Calculer $${nom[3]}${nom[4]}$.<br>\n \n `\n this.question += mathalea2d({ xmin: -1, ymin: -1, xmax: 8, ymax: 5, pixelsParCm: 18, mainlevee: false, amplitude: 0.5, style: 'margin: auto' }, objets)\n this.correction = ` Les longueurs du triangle $${nom[0]}${nom[3]}${nom[4]}$ sont 2 fois plus petites que les longueurs du triangle $${nom[0]}${nom[1]}${nom[2]}$.<br>\n Le triangle $${nom[0]}${nom[3]}${nom[4]}$ est une réduction du triangle $${nom[0]}${nom[1]}${nom[2]}$. <br>\n Ainsi : $${nom[3]}${nom[4]}= ${nom[1]}${nom[2]} \\\\div 2 = ${texNombre(a)}\\\\div 2 =${texNombre(a / 2)}$.\n `\n\n this.reponse = calculANePlusJamaisUtiliser(a / 2)\n this.canEnonce = this.question// 'Compléter'\n this.canReponseACompleter = `$${nom[3]}${nom[4]}=\\\\ldots$`\n }\n }\n}\n"],"names":["titre","interactifReady","interactifType","uuid","ref","CalculLongueurThalesMilieu","Exercice","a","A","B","C","D","E","objets","nom","choice","creerNomDePolygone","randint","point","segment","codageSegments","labelPoint","texNombre","mathalea2d","calculANePlusJamaisUtiliser"],"mappings":"iHAUY,MAACA,EAAQ,4DACRC,EAAkB,GAClBC,EAAiB,WAQjBC,EAAO,QACPC,EAAM,UACJ,SAASC,GAA8B,CACpDC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,iBAAmB,mBACxB,KAAK,YAAc,EACnB,KAAK,gBAAkB,EAGvB,KAAK,gBAAkB,UAAY,CACjC,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAQC,EAC1BC,EAAO,CAAC,GAAM,EAAK,CAAC,GACtBD,EAAME,EAAmB,EAAG,CAAC,IAAI,CAAC,EAClCT,EAAIU,EAAQ,EAAG,CAAC,EAAIA,EAAQ,EAAG,CAAC,EAAI,GAAKA,EAAQ,EAAG,CAAC,EAAI,IAEzDT,EAAIU,EAAM,EAAG,EAAGJ,EAAI,CAAC,EAAG,OAAO,EAC/BL,EAAIS,EAAM,EAAG,EAAGJ,EAAI,CAAC,EAAG,OAAO,EAC/BJ,EAAIQ,EAAM,EAAG,EAAGJ,EAAI,CAAC,EAAG,OAAO,EAC/BH,EAAIO,EAAM,IAAK,EAAGJ,EAAI,CAAC,EAAG,OAAO,EAC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