File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/_Construire_un_triangle_avec_cible-88aSvrAT.js
import{E as he,aW as oe,aj as ce,cu as ue,aL as be,q as T,ax as $,r,B as E,aA as S,aE as Z,bu as ne,aG as ge,aP as D,ap as L,ba as U,G as o,_ as V,aR as N,cq as x,V as W,H,bk as Q,bZ as ee,ct as te,L as O,k0 as B,bG as ae,aM as G,o as se,aa as re,c as pe,l as de,al as xe}from"./index-ajJ0B2-K.js";import{a as F,b as j}from"./cibles-XniacM22.js";import"./reperes-w_D-727i.js";function Me(){he.call(this),this.titre="Construct a triangle with self-correcting target",this.nbQuestions=4,this.nbCols=1,this.nbColsCorr=1,this.classe=6,this.typeExercice="IEP",this.nouvelleVersion=function(){let c,p,d;this.listeQuestions=[],this.listeCorrections=[];let _;const P=function(q){const I=xe(r(1,8)),b=Number(r(1,q)).toString();return I+b};let z,n,l,h,t,e,a,u,i,y,g,R,w,K,X,A,J,M,m,k,C,f,s,v;this.classe===6?z=oe(6):z=oe(9);const le=ce(z,this.nbQuestions);for(let q=0,I,b,ie=0;q<this.nbQuestions&&ie<50;){c=new ue,k=[],m=[],C=[],I="The triangle below was made freehand.<br>Construct this triangle with the geometry instruments, respecting the measurements indicated.<br>",b="Here is the construction you had to make.<br>",q%5===0&&(_=["PQD"]),f=be(3,_),_.push(f),s=[];for(let Y=0;Y<3;Y++)s.push(f[Y]);switch(t=T(0,0,s[0],"left"),le[q]){case 1:g=r(35,45),y=$(r(35,45,g)/10),i=$(r(46,60)/10),g=$(g/10),e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",R=Q(t,g),w=Q(e,y),a=ae(R,w,s[2],1),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(o(e,t),o(a,e,"black",1),o(t,a,"black",1)),C.push(n,B(t,a,30,"gray",1,2),B(e,a,30,"gray",1,2),o(e,t),o(a,e),o(t,a)),b+="For this construction, we used the compass and the graduated rule.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangle3longueurs(f,i,g,y,!0);break;case 2:y=r(70,80)/10,i=$(r(46,60)/10),e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",w=Q(e,y),M=S(t,e),A=ee(e,M),a=te(A,w,s[2],1),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(o(e,t),o(a,e,"black",1),O(t,e,u)),C.push(n,B(e,a,30,"gray",1,2),O(t,e,a),o(e,t),o(a,e)),b+="For this construction, we used the graduated ruler, the square and the compass.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangleRectangle2Cotes(f,i,y,!0);break;case 3:y=$(r(35,45)/10),i=$(r(46,60)/10),g=i,e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",R=Q(t,g),w=Q(e,y),a=ae(R,w,s[2],1),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(o(e,t),o(a,e,"black",1),G("||","black",t,e,t,u)),C.push(n,B(t,a,30,"gray",1,2),B(e,a,30,"gray",1,2),o(e,t),o(a,e),G("||","black",t,e,t,a),o(t,a)),b+="For this construction, we used the compass and the graduated rule.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),v=c.triangle3longueurs(f,i,g,y,!0),c.segmentCodage(v[0],v[1],{codage:"\\\\"}),c.segmentCodage(v[0],v[2],{codage:"\\\\"});break;case 4:i=$(r(46,60)/10),y=i,e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",w=Q(e,y),M=S(t,e),A=ee(e,M),a=te(A,w,s[2],1),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(o(e,t),G("||","black",t,e,e,u),O(t,e,u)),C.push(n,B(e,a,30,"gray",1,2),O(t,e,a),o(e,t),G("||","black",t,e,e,a)),b+="For this construction, we used the square and the graduated ruler.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),v=c.triangleRectangle2Cotes(f,i,i,!0),c.segmentCodage(v[0],v[1],{codage:"\\\\"}),c.segmentCodage(v[1],v[2],{codage:"\\\\"});break;case 5:i=$(r(46,60)/10),g=i,y=i,e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",R=Q(t,g),w=Q(e,y),a=ae(R,w,s[2],1),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(o(e,t),G("||","black",t,e,e,u,t,u)),C.push(n,B(t,a,30,"gray",1,2),B(e,a,30,"gray",1,2),o(e,t),G("||","black",t,e,e,a,t,a)),b+="For this construction, we used the compass and the graduated rule.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangleEquilateral(f,i,!0);break;case 6:i=$(r(46,60)/10),g=r(40,60)/10,e=E(t,i,r(-45,45),s[1],"right"),a=N(e,t,r(8,24)*5,g/i,s[2],"above"),u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(U(e,t,u,1.1),o(e,t),V(W(Math.round(x(e,t,a)))+"°",N(e,t,x(e,t,a)/2,1/i+.1)),o(t,a,"black",1)),C.push(n,o(e,t),H(e,t,a,"black",1),o(t,a,"black",1)),b+="For this construction, we used the protractor and the graduated ruler.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangle2longueurs1angle(f,i,g,Math.round(x(e,t,a)),!0);break;case 7:i=$(r(46,60)/10),e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",M=S(t,e),J=Z(M,t,r(8,14)*5),A=Z(M,e,-r(8,12)*5),a=ne(J,A,s[2]),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(U(e,t,u,1.1),V(W(Math.round(x(e,t,a)))+"°",N(e,t,x(e,t,a)/2,1/i+.1)),U(t,e,u,1.1),V(W(Math.round(x(t,e,a)))+"°",N(t,e,-x(t,e,a)/2,1/i+.1))),C.push(n,o(e,t),H(e,t,a,"black",1),H(t,e,a,"black",1)),b+="For this construction, we used the protractor.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangle1longueur2angles(s,i,Math.round(x(e,t,a)),Math.round(x(t,e,a)));break;case 8:g=r(70,80)/10,i=$(r(46,60)/10),e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",R=Q(t,g),M=S(t,e),A=ee(e,M),a=te(A,R,s[2],1),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(o(e,t),o(t,a,"black",1),O(t,e,u)),C.push(n,B(t,a,30,"gray",1,2),O(t,e,a),o(e,t),o(t,a)),b+="For this construction, we used the graduated ruler, the square and the compass.<br>",b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangleRectangleCoteHypotenuse(f,i,g,!0);break;case 9:i=$(r(46,60)/10),e=E(t,i,r(-45,45),s[1]),e.positionLabel="right",M=S(t,e),J=Z(M,t,r(8,14)*5),A=Z(M,e,-r(8,12)*5),a=ne(J,A,s[2]),g=ge(t,a),a.positionLabel="above",u=T(a.x+r(-5,5,[-2,-1,0,1,2])/10,a.y+r(-5,5,[-2,-1,0,1,2])/10,s[2]),l=P(5),h=F(a.x,a.y,5,.3,l),n=j({x:h[0],y:h[1],rang:5,taille:.3}),k.push(n,D(t,e),L(t,e)[1]),m.push(U(e,t,u,1.1),o(e,t),V(W(Math.round(x(e,t,a)))+"°",N(e,t,x(e,t,a)/2,1/i+.1)),U(t,u,e,1.1),V(W(Math.round(x(t,a,e)))+"°",N(t,u,x(t,u,e)/2,1/g+.1))),C.push(n,o(e,t),H(e,t,a,"black",1),H(t,e,a,"black",1),H(t,a,e,"black",1)),b+=`For this construction, it was necessary to calculate the angle $\\widehat{${s[0]+s[1]+s[2]}}$.<br>$\\widehat{${s[0]+s[1]+s[2]}}=180-\\widehat{${s[1]+s[0]+s[2]}}-\\widehat{${s[0]+s[2]+s[1]}}=180-${Math.round(x(e,t,a))} -${Math.round(x(e,a,t))}=${Math.round(x(t,e,a))}$.<br>We used the protractor to perform this construction.<br>`,b+=`The ${s[2]} point is in the ${l} sector.<br>`,p=Math.min(0,e.x,a.x,t.x)-1,d=Math.max(0,e.y,a.y,t.y)+3,c.recadre(p,d),c.triangle1longueur2angles(f,i,Math.round(x(e,t,a)),Math.round(x(a,e,t)),!0)}K=L(t,e,a),X=L(t,e,u),m.push(X[0],X[1]),C.push(K[0],K[1]),I+=se(Object.assign({},re(m),{pixelsParCm:30,scale:1,mainlevee:!0,amplitude:pe.isHtml?.3:1}),m),I+=se(Object.assign({},re(k),{pixelsParCm:30,scale:1,mainlevee:!1,amplitude:1}),k),b+=se(Object.assign({},re(C),{pixelsParCm:30,scale:1,mainlevee:!1,amplitude:1}),C),b+="<br>"+c.htmlBouton(this.numeroExercice,q),this.listeQuestions.indexOf(I)===-1&&(this.listeQuestions.push(I),this.listeCorrections.push(b),q++),ie++}de(this)}}export{Me as default};
//# sourceMappingURL=_Construire_un_triangle_avec_cible-88aSvrAT.js.map