File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5G31-2-GUkwO2sh.js
import{E as $,c as l,m as i,r as a,aj as u,l as h}from"./index-ajJ0B2-K.js";import{T as m}from"./Triangle-ngsHNKWY.js";import{t as g}from"./tableau-klWf8qqZ.js";const f="Determine an angle in a triangle and its nature",C="11/01/2023",T="c2f77",p="5G31-2";class k extends ${constructor(){super(),this.sup=1,this.nbQuestions=1,l.isHtml?this.spacingCorr=2:this.spacingCorr=1.5,l.isHtml?this.spacing=2:this.spacing=2,this.consigneModifiable=!1,this.correctionDetailleeDisponible=!0,this.correctionDetaillee=!0,this.besoinFormulaireNumerique=["Triangle type",4,` 1: Any
2: Rectangle
3: Isosceles or equilateral
4: Mixture`],this.troisiemeAngle=function(n,r){let t=-1;return n+r<180&&(t=180-(n+r)),t},this.affichageFactorise=function(n,r,t){const e={enonce:{valeurs:[],noms:[],tableau:""},correction:{valeurs:[],noms:[],tableau:"",details:""}};switch(e.enonce.noms=[n.getAngles()[0],n.getAngles()[1],n.getAngles()[2]],e.correction.valeurs=[n.a1,n.a2,n.a3],e.correction.noms=[n.getAngles()[0],n.getAngles()[1],n.getAngles()[2]],t){case 0:e.enonce.valeurs=["\\ldots",n.a2,n.a3],e.correction.details=`So ${e.enonce.noms[0]} $=180\\degree-($ ${e.enonce.noms[1]} $+$ ${e.enonce.noms[2]} $)$.<br>`,e.correction.details+=`So ${e.enonce.noms[0]} $=180\\degree-( ${e.enonce.valeurs[1]}\\degree + ${e.enonce.valeurs[2]}\\degree )$.<br>`,e.correction.details+=`So ${e.enonce.noms[0]} $=180\\degree-${e.enonce.valeurs[1]+e.enonce.valeurs[2]}\\degree$.<br>`,e.correction.details+=`So ${e.enonce.noms[0]} $=${180-e.enonce.valeurs[1]-e.enonce.valeurs[2]}\\degree$.<br>`,e.correction.tableau=`${g([`\\text{${e.enonce.noms[0]}}`,`\\text{${e.enonce.noms[1]}}`,`\\text{${e.enonce.noms[2]}}`,"\\text{Nature of the triangle}"],[i(`${e.correction.valeurs[0]}\\degree`)],[`${e.correction.valeurs[1]}\\degree`,`${e.correction.valeurs[2]}\\degree`,i(`\\text{${r}}`)])}`;break;case 1:e.enonce.valeurs=[n.a1,"\\ldots",n.a3],e.correction.details=`So ${e.enonce.noms[1]} $=180\\degree-($ ${e.enonce.noms[0]} $+$ ${e.enonce.noms[2]} $)$.<br>`,e.correction.details+=`So ${e.enonce.noms[1]} $=180\\degree-( ${e.enonce.valeurs[0]}\\degree + ${e.enonce.valeurs[2]}\\degree )$.<br>`,e.correction.details+=`So ${e.enonce.noms[1]} $=180\\degree-${e.enonce.valeurs[0]+e.enonce.valeurs[2]}\\degree$.<br>`,e.correction.details+=`So ${e.enonce.noms[1]} $=${180-e.enonce.valeurs[0]-e.enonce.valeurs[2]}\\degree$.<br>`,e.correction.tableau=`${g([`\\text{${e.enonce.noms[0]}}`,`\\text{${e.enonce.noms[1]}}`,`\\text{${e.enonce.noms[2]}}`,"\\text{Nature of the triangle}"],[`${e.correction.valeurs[0]}\\degree`],[i(`${e.correction.valeurs[1]}\\ degree`),`${e.correction.valeurs[2]}\\degree`,i(`\\text{${r}}`)])}`;break;case 2:e.enonce.valeurs=[n.a1,n.a2,"\\ldots"],e.correction.details=`So ${e.enonce.noms[2]} $=180\\degree-($ ${e.enonce.noms[1]} $+$ ${e.enonce.noms[0]} $)$.<br>`,e.correction.details+=`So ${e.enonce.noms[2]} $=180\\degree-( ${e.enonce.valeurs[1]}\\degree + ${e.enonce.valeurs[0]}\\degree )$.<br>`,e.correction.details+=`So ${e.enonce.noms[2]} $=180\\degree-${e.enonce.valeurs[1]+e.enonce.valeurs[0]}\\degree$.<br>`,e.correction.details+=`So ${e.enonce.noms[2]} $=${180-e.enonce.valeurs[1]-e.enonce.valeurs[0]}\\degree$.<br>`,e.correction.tableau=`${g([`\\text{${e.enonce.noms[0]}}`,`\\text{${e.enonce.noms[1]}}`,`\\text{${e.enonce.noms[2]}}`,"\\text{Nature of the triangle}"],[`${e.correction.valeurs[0]}\\degree`],[`${e.correction.valeurs[1]}\\degree`,i(`${e.correction.valeurs[2]}\\degree`),i(`\\text{${r}}`)])}`;break}return e.enonce.tableau=`${g([`\\text{${e.enonce.noms[0]}}`,`\\text{${e.enonce.noms[1]}}`,`\\text{${e.enonce.noms[2]}}`,"\\text{Nature of the triangle}"],[`${e.enonce.valeurs[0]}\\degree`],[`${e.enonce.valeurs[1]}\\degree`,`${e.enonce.valeurs[2]}\\degree`,""])}`,e},this.typeTriangle=function(n){const r={texte:"",texteCorr:"",natureTriangleCorr:""},t=new m;switch(n){case"any":for(t.a1=a(10,40,[90]),t.a2=a(20,100,[t.a1,90,90-t.a1]),t.a3=this.troisiemeAngle(t.a1,t.a2);t.a3===-1;)t.a1=a(10,40,[90]),t.a2=a(20,100,[t.a1,90,90-t.a1]),t.a3=this.troisiemeAngle(t.a1,t.a2);r.natureTriangleCorr=`The ${t.getNom()} triangle does not present any particularity so it is a ${n} triangle.`;break;case"rectangle":for(t.a1=90,t.a2=a(20,100,[t.a1]),t.a3=this.troisiemeAngle(t.a1,t.a2);t.a3===-1;)t.a1=90,t.a2=a(20,100,[t.a1]),t.a3=this.troisiemeAngle(t.a1,t.a2);r.natureTriangleCorr=`The triangle ${t.getNom()} has a right angle so it is a triangle ${n}.`;break;case"isosceles":for(t.a1=a(20,100,[90]),t.a2=t.a1,t.a3=this.troisiemeAngle(t.a1,t.a2);t.a3===-1;)t.a1=a(20,100,[90]),t.a2=t.a1,t.a3=this.troisiemeAngle(t.a1,t.a2);r.natureTriangleCorr=`The triangle ${t.getNom()} has two equal angles so it is a triangle ${n}.`;break;case"isosceles rectangle":t.a1=90,t.a2=45,t.a3=t.a2,r.natureTriangleCorr=`Triangle ${t.getNom()} has two equal angles and one right angle so it is a triangle ${n}.`;break;case"equilateral":t.a1=60,t.a2=60,t.a3=t.a2,r.natureTriangleCorr=`Triangle ${t.getNom()} has three equal angles so it is a triangle ${n}.`;break}const e=a(0,2),s=this.affichageFactorise(t,n,e).enonce,c=this.affichageFactorise(t,n,e).correction;return r.texte=s.tableau,this.correctionDetaillee&&(r.texteCorr=`In the triangle ${t.getNom()},`,r.texteCorr+=`${s.noms[0]} + ${s.noms[1]} + ${s.noms[2]} $=180\\degree$.<br>`,r.texteCorr+=`${c.details}<br>`),r.texteCorr+=l.isHtml?"":"\\medskip",r.texteCorr+=`${c.tableau} <br>`,r.texteCorr+=l.isHtml?"":"<br>\\medskip",this.correctionDetaillee&&(r.texteCorr+=r.natureTriangleCorr),r}}nouvelleVersion(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let n;switch(this.sup){case 1:n=[1];break;case 2:n=[2,4];break;case 3:n=[3,4,5];break;default:n=[1,2,3,4,5];break}const r=u(n,this.nbQuestions);this.nbQuestions===1?this.consigne="Complete the following table with the measurement of the missing angle and the nature of the triangle.":this.consigne="Complete the following tables with the measurement of the missing angle and the nature of the triangle.";for(let t=0,e,s,c=0;t<this.nbQuestions&&c<50;){switch(this.correctionDetaillee?s="In a triangle, the sum of the angles is equal to $180\\degree$.<br>":s="",r[t]){case 1:{const o=this.typeTriangle("any");e=o.texte,s=o.texteCorr}break;case 2:{const o=this.typeTriangle("rectangle");e=o.texte,s=o.texteCorr}break;case 3:{const o=this.typeTriangle("isosceles");e=o.texte,s=o.texteCorr}break;case 4:{const o=this.typeTriangle("isosceles rectangle");e=o.texte,s=o.texteCorr}break;case 5:{const o=this.typeTriangle("equilateral");e=o.texte,s=o.texteCorr}break}e+="<br>",this.questionJamaisPosee(t,e)&&(this.listeQuestions.push(e),this.listeCorrections.push(s),t++),c++}h(this)}}export{C as dateDePublication,k as default,p as ref,f as titre,T as uuid};
//# sourceMappingURL=5G31-2-GUkwO2sh.js.map