File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5G42-R6GrENRY.js.map
{"version":3,"file":"5G42-R6GrENRY.js","sources":["../../src/exercices/5e/5G42.js"],"sourcesContent":["import { codageAngleDroit } from '../../lib/2d/angles.js'\nimport { codageSegments } from '../../lib/2d/codages.js'\nimport { point } from '../../lib/2d/points.js'\nimport { polygoneAvecNom } from '../../lib/2d/polygones.js'\nimport { segment } from '../../lib/2d/segmentsVecteurs.js'\nimport { labelPoint } from '../../lib/2d/textes.js'\nimport { rotation, similitude } from '../../lib/2d/transformations.js'\nimport { combinaisonListes } from '../../lib/outils/arrayOutils'\nimport { choisitLettresDifferentes } from '../../lib/outils/aleatoires'\nimport Exercice from '../deprecatedExercice.js'\nimport { mathalea2d } from '../../modules/2dGeneralites.js'\nimport { listeQuestionsToContenu, randint } from '../../modules/outils.js'\nexport const titre = 'Determine the nature of parallelograms'\n\n/**\n * Description didactique de l'exercice\n * @author\n * Référence 5G42\n*/\nexport const uuid = '8812e'\nexport const ref = '5G42'\nexport default function DemonstrationsParallelogrammes () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.titre = titre\n this.consigne = ''\n this.nbQuestions = 7\n this.nbCols = 1 // Uniquement pour la sortie LaTeX\n this.nbColsCorr = 1 // Uniquement pour la sortie LaTeX\n this.video = '' // Id YouTube ou url\n\n this.nouvelleVersion = function () {\n this.listeQuestions = [] // Liste de questions\n this.listeCorrections = [] // Liste de questions corrigées\n this.autoCorrection = []\n\n const typesDeQuestionsDisponibles = ['type1', 'type2', 'type3', 'type4', 'type5', 'type6', 'type7'] // On créé 3 types de questions\n const listeTypeDeQuestions = combinaisonListes(typesDeQuestionsDisponibles, this.nbQuestions) // Tous les types de questions sont posés mais l'ordre diffère à chaque 'cycle'\n for (let i = 0, objets, O, A, B, C, D, p, t1, t2, t3, t4, s1, s2, s3, s4, d1, d2, texte, texteCorr, noms, nom, prop1, prop2, type, def, cpt = 0; i < this.nbQuestions && cpt < 50;) {\n noms = choisitLettresDifferentes(5, 'Q')\n nom = `$${noms[0] + noms[1] + noms[2] + noms[3]}$`\n objets = []\n O = point(0, 0, noms[4], 'above left')\n A = rotation(point(3, 0), O, randint(0, 90), noms[0])\n B = similitude(A, O, 80 + randint(0, 20), 0.8 + randint(1, 40) / 100, noms[1])\n C = similitude(A, O, 180, 0.9 + randint(1, 20) / 100, noms[2])\n D = similitude(B, O, 180, 0.9 + randint(1, 20) / 100, noms[3])\n p = polygoneAvecNom(A, B, C, D)\n s1 = segment(A, B, 'blue')\n s2 = segment(B, C, 'red')\n s3 = segment(C, D, 'blue')\n s4 = segment(D, A, 'red')\n d1 = segment(A, C)\n d2 = segment(B, D)\n objets.push(s1, s2, s3, s4, p[1])\n // Main loop where i+1 corresponds to the question number\n switch (listeTypeDeQuestions[i]) { // Suivant le type de question, le contenu sera différent\n case 'type1': // rectangle 1\n def = `its diagonals $[${noms[0] + noms[2]}]$ and $[${noms[1] + noms[3]}]$ have the same length`\n prop1 = 'has diagonals of the same length'\n prop2 = `$${noms[0] + noms[2]}=${noms[1] + noms[3]}$`\n type = 'rectangle'\n t2 = codageSegments('||', 'red', B, O, O, D)\n t1 = codageSegments('||', 'red', A, O, O, C)\n objets.push(t1, t2, d1, d2)\n break\n case 'type2': // losange 1\n def = `its diagonals $[${noms[0] + noms[2]}]$ and $[${noms[1] + noms[3]}]$ are perpendicular`\n prop1 = 'has perpendicular diagonals'\n prop2 = `$[${noms[0] + noms[2]}]\\\\perp[${noms[1] + noms[3]}]$`\n type = 'diamond'\n t1 = codageSegments('||', 'red', A, O, O, C)\n t2 = codageAngleDroit(A, O, D)\n t3 = codageSegments('|||', 'blue', B, O, O, D)\n t4 = labelPoint(O)\n objets.push(t1, t2, t3, t4, d1, d2)\n break\n case 'type3': // carré 1\n prop2 = `$[${noms[0] + noms[2]}]\\\\perp[${noms[1] + noms[3]}]$ and $${noms[0] + noms[2]}=${noms[1] + noms[3]}$`\n def = `its diagonals $[${noms[0] + noms[2]}]$ and $[${noms[1] + noms[3]}]$ have the same length and are perpendicular`\n prop1 = 'has perpendicular diagonals of the same length'\n t1 = codageSegments('||', 'red', A, O, O, C)\n t2 = codageAngleDroit(A, O, D)\n t3 = codageSegments('||', 'red', B, O, O, D)\n t4 = labelPoint(O)\n objets.push(t1, t2, t3, t4, d1, d2)\n type = 'square'\n break\n case 'type4': // losange 2\n prop2 = `$${noms[0] + noms[1]}=${noms[1] + noms[2]}$`\n def = `its sides $[${noms[0] + noms[1]}]$ and $[${noms[1] + noms[2]}]$ have the same length`\n prop1 = 'has two consecutive sides of the same length'\n type = 'diamond'\n t3 = codageSegments('O', 'green', A, B, B, C)\n objets.push(t3)\n break\n case 'type5': // rectangle 2\n prop2 = `$[${noms[0] + noms[1]}]\\\\perp[${noms[1] + noms[2]}]$`\n def = `its sides $[${noms[0] + noms[1]}]$ and $[${noms[1] + noms[2]}]$ are perpendicular`\n prop1 = 'has two consecutive perpendicular sides'\n t3 = codageAngleDroit(A, B, C)\n objets.push(t3)\n type = 'rectangle'\n break\n case 'type6': // carré 2\n prop2 = `$[${noms[0] + noms[1]}]\\\\perp[${noms[1] + noms[2]}]$ and $${noms[0] + noms[1]}=${noms[1] + noms[2]}$`\n def = `its sides $[${noms[0] + noms[1]}]$ and $[${noms[1] + noms[2]}]$ are perpendicular and of the same length`\n prop1 = 'has two consecutive perpendicular sides of the same length'\n t2 = codageSegments('O', 'green', A, B, B, C)\n t3 = codageAngleDroit(A, B, C)\n objets.push(t2, t3)\n type = 'square'\n break\n case 'type7': // carré 3\n prop2 = `$[${noms[0] + noms[1]}]\\\\perp[${noms[1] + noms[2]}]$ and $[${noms[0] + noms[2]}]\\\\perp[${noms[1] + noms[3]}]$`\n def = `its sides $[${noms[0] + noms[1]}]$ and $[${noms[1] + noms[2]}]$ are perpendicular and its diagonals $[${noms[0] + noms[2]}]$ and $[${noms[1] + noms[3]}]$ too`\n prop1 = 'has two consecutive perpendicular sides and perpendicular diagonals'\n type = 'square'\n t1 = codageAngleDroit(A, O, B)\n t2 = codageAngleDroit(A, B, C)\n t4 = labelPoint(O)\n objets.push(t1, t2, t4, d1, d2)\n break\n }\n texte = `${nom} is a parallelogram such as ${def}.<br>`\n texte += `Determine the nature of ${nom} by justifying the response.`\n texteCorr = 'Segments of the same color are parallel in the following diagram:<br>'\n texteCorr += mathalea2d({ xmin: -5, ymin: -4.5, xmax: 5, ymax: 4.5, pixelsParCm: 20, scale: 0.5, mainlevee: true, amplitude: 0.3 }, objets) + '<br>'\n texteCorr += `We know that ${prop2}.<br>`\n texteCorr += `If a parallelogram ${prop1}, then it is a ${type}.<br>`\n texteCorr += `${nom} is therefore a ${type}.`\n\n if (this.listeQuestions.indexOf(texte) === -1) {\n // If the question has never been asked, we create another one\n this.listeQuestions.push(texte)\n this.listeCorrections.push(texteCorr)\n i++\n }\n cpt++\n }\n listeQuestionsToContenu(this)\n }\n // this.needNumericalForm = ['Difficulty level',3];\n}\n"],"names":["titre","uuid","ref","DemonstrationsParallelogrammes","Exercice","listeTypeDeQuestions","combinaisonListes","i","objets","O","A","B","C","D","p","t1","t2","t3","t4","s1","s2","s3","s4","d1","d2","texte","texteCorr","noms","nom","prop1","prop2","type","def","cpt","choisitLettresDifferentes","point","rotation","randint","similitude","polygoneAvecNom","segment","codageSegments","codageAngleDroit","labelPoint","mathalea2d","listeQuestionsToContenu"],"mappings":"mNAYY,MAACA,EAAQ,yCAORC,EAAO,QACPC,EAAM,OACJ,SAASC,GAAkC,CACxDC,EAAS,KAAK,IAAI,EAClB,KAAK,MAAQJ,EACb,KAAK,SAAW,GAChB,KAAK,YAAc,EACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,MAAQ,GAEb,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EAGxB,MAAMK,EAAuBC,EADO,CAAC,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,OAAO,EACtB,KAAK,WAA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