File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/_Utiliser_le_codage_pour_decrire-MDGhM9Xo.js
import{E as z,r as l,ag as J,aL as X,ai as Y,q as V,B as A,aR as b,jH as Z,jW as _,bu as D,aA as f,K as F,C as o,I as T,ba as M,aM as u,kb as ee,L as x,bn as ae,aG as se,cs as G,aE as H,o as K,l as te}from"./index-ajJ0B2-K.js";function ne(){z.call(this),this.titre="Use coding to describe a figure",this.nbQuestions=1,this.nbCols=1,this.nbColsCorr=1,this.sup=l(1,3),this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[];let P,w,C,$,g,s,a,t,i,r,n,c,d,k,y,p,q,O,E,I,j,N,U,L,R;const W=J({max:this.classe===6?3:4,defaut:this.classe===6?4:5,melange:this.classe===6?4:5,nbQuestions:this.nbQuestions,saisie:this.sup});let Q;for(let v=0,h,m,S=0;v<this.nbQuestions&&S<50;){$=[],g=[],w={},C={},v%3===0&&(Q=["PQD"]),P=X(6,Q),Q.push(P);let e=[];for(let B=0;B<6;B++)e.push(P[B]);switch(e=Y(e),s=V(0,0,e[0],"left"),W[v]){case 1:t=A(s,l(5,7),l(-45,45),e[2],"right"),d=o(s,t),a=b(t,s,-85,l(5,7)/10,e[1],"below"),c=o(s,a),r=ae(s,t,se(s,t)/2.2,e[4],"below"),j=G(t,a),I=G(s,t),U=f(t,a),N=H(U,a,l(-40,-20)),L=f(s,t),R=H(L,s,l(30,40)),i=D(N,j,e[3],"below"),i.x+=l(-2,2,0)/5,n=D(R,I,e[5],"above"),n.x+=l(-2,2,0)/5,p=o(a,i),q=o(t,i),k=o(s,n),O=o(t,n),E=o(r,n),y=o(a,t),w={xmin:Math.min(s.x-1,a.x-1,t.x-1,i.x-1,r.x-1,n.x-1),ymin:Math.min(s.y-1,a.y-1,t.y-1,i.y-1,r.y-1,n.y-1),xmax:Math.max(s.x+1,a.x+1,t.x+1,i.x+1,r.x+1,n.x+1),ymax:Math.max(s.y+1,a.y+1,t.y+1,i.y+1,r.y+1,n.y+1.5),pixelsParCm:30,scale:1,mainlevee:!0,amplitude:1},$.push(c,d,y,E,O,k,q,p,x(a,s,t),u("//","black",s,n,n,t,2),u("|||","black",s,r,r,t,2),u("O","black",a,i,i,t,2),T(s,a,t,i,r,n),x(s,r,n)),h="Using the diagram below, determine:<br>",h+="- two segments of the same length;<br>",h+="- the middle of a segment;<br>",h+="- a right triangle;<br>",h+="- an isosceles triangle.<br>",m=`- Two segments of the same measurement: [$${e[0]+e[4]}$] and $[${e[4]+e[2]}]$ or $[${e[0]+e[5]}]$ and $[${e[5]+e[2]}]$`,m+=` or $[${e[1]+e[3]}]$ and $[${e[3]+e[2]}]$.<br>`,m+=`- $${e[4]}$ is the midpoint of the segment $[${e[0]+e[2]}]$.<br>`,m+=`- $${e[0]+e[1]+e[2]}$ is a right triangle in $${e[0]}$, $${e[0]+e[4]+e[5]}$ is a right triangle in $${e[4]}$ and $${e[2]+e[4]+e[5]}$ is a right triangle in $${e[4]}$.<br>`,m+=`- $${e[0]+e[5]+e[2]}$ is an isosceles triangle in $${e[5]}$ and $${e[1]+e[3]+e[2]}$ is an isosceles triangle in $${e[3]}$.<br>`;break;case 2:a=A(s,l(5,7),l(-45,45),e[1],"above"),t=b(s,a,l(85,90),.95,e[2],"below"),i=b(a,s,l(-93,-87),1,e[3],"below"),n=b(a,t,-55,.8,e[5],"right"),r=b(t,i,57,l(85,115)/100,e[4],"right"),c=o(i,r),d=o(t,r),y=o(t,n),p=o(a,n),q=F(s,a,t,i),C={xmin:Math.min(s.x-1,a.x-1,t.x-1,i.x-1,r.x-1,n.x-1),ymin:Math.min(s.y-1,a.y-1,t.y-1,i.y-1,r.y-1,n.y-1),xmax:Math.max(s.x+1,a.x+1,t.x+1,i.x+1,r.x+1,n.x+1),ymax:Math.max(s.y+1,a.y+1,t.y+1,i.y+1,r.y+1,n.y+1),pixelsParCm:30,scale:1,mainlevee:!0,amplitude:1},g.push(T(s,a,t,i,r,n),c,d,y,p,q),g.push(x(i,s,a),x(s,a,t),x(a,t,i),x(t,i,s)),g.push(u("||","black",i,r,t,r,2),u("O","black",s,a,a,t,t,i,i,s,2),u("|||","black",n,t,a,n,2)),h=`$${e[0]+e[1]+e[2]+e[3]}$ is a square and $${e[3]+e[2]+e[4]}$ is an equilateral triangle ($${e[4]}$ is inside the square $${e[0]+e[1]+e[2]+e[3]}$).<br>`,h+=` $${e[1]+e[2]+e[5]}$ is an isosceles triangle in $${e[5]}$ ($${e[5]}$ is outside the square $${e[0]+e[1]+e[2]+e[3]}$).<br>`,h+="Represent this configuration using a freehand diagram and add the necessary coding.",m="Below is a diagram that might suit the situation.<br>";break;case 3:a=A(s,l(5,7),l(-45,45),e[1],"above"),t=b(s,a,l(85,90),.5,e[2],"below"),i=b(a,s,l(-93,-87),.53,e[3],"below"),c=o(i,a),d=o(s,t),r=D(f(s,t),f(i,a),e[4],"above"),n=ee(r,f(a,t),-1.1,e[5],"right"),k=F(s,a,t,i),y=o(a,n),p=o(t,n),C={xmin:Math.min(s.x-1,a.x-1,t.x-1,i.x-1,r.x-1,n.x-1),ymin:Math.min(s.y-1,a.y-1,t.y-1,i.y-1,r.y-1,n.y-1),xmax:Math.max(s.x+1,a.x+1,t.x+1,i.x+1,r.x+1,n.x+1),ymax:Math.max(s.y+1,a.y+1,t.y+1,i.y+1,r.y+1,n.y+1),pixelsParCm:30,scale:1,mainlevee:!0,amplitude:1},g.push(T(s,a,t,i,r,n),c,d,k,y,p),g.push(x(i,s,a),x(s,a,t),x(a,t,i),x(t,i,s)),g.push(u("||","black",i,r,r,a,s,r,r,t,n,t,a,n,2),u("O","black",s,a,i,t,2),u("/","black",s,i,a,t,2)),h=`$${e[0]+e[1]+e[2]+e[3]}$ is a rectangle. Its diagonals intersect at $${e[4]}$.<br>`,h+=`$${e[4]+e[1]+e[5]+e[2]}$ is a diamond.<br>`,h+="Represent this configuration using a freehand diagram and add the necessary coding.",m="Below is a diagram that might suit the situation.<br>";break;case 4:a=A(s,l(6,7),l(-30,30),e[1],"above right"),n=b(s,a,l(-70,-50),l(80,90)/100,e[5],"left"),i=b(a,s,Z(s,a,n)+l(3,5),l(15,20)/10,e[3],"below"),t=_(V(a.x+1,a.y+1),s,i,e[2],"below right"),r=D(f(s,t),f(i,a),e[4],"above right"),k=F(s,a,t,i),y=o(a,n),p=o(s,n),c=o(a,i),d=o(s,t),w={xmin:Math.min(s.x-1,a.x-1,t.x-1,i.x-1,r.x-1,n.x-1),ymin:Math.min(s.y-1,a.y-1,t.y-1,i.y-1,r.y-1,n.y-1),xmax:Math.max(s.x+1,a.x+1,t.x+1,i.x+1,r.x+1,n.x+1),ymax:Math.max(s.y+1,a.y+1,t.y+1,i.y+1,r.y+1,n.y+1),pixelsParCm:30,scale:1,mainlevee:!0,amplitude:.8},$.push(T(s,a,t,i,r,n),c,d,k,y,p),$.push(M(i,s,a,2,"|","red",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(M(a,t,i,2,"|","red",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(M(s,a,n,2,"|","red",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(M(s,a,t,2,"||","blue",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(M(s,i,t,2,"||","blue",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(M(a,s,n,2,"|||","green",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(M(a,n,s,2,"|||","green",2,1,"none",.2,!1,!1,"",1,{echelleMark:2})),$.push(u("V.V.","black",a,r,r,i,2),u("O","black",s,r,r,t,2)),h="Using the diagram below, determine:<br>",h+=`- the nature of the triangle $${e[0]+e[1]+e[5]}$ ;<br>`,h+=`- the nature of the quadrilateral $${e[0]+e[1]+e[2]+e[3]}$ ;<br>`,h+=`- the nature of the angle $\\widehat{${e[5]+e[1]+e[2]}}$.<br>`,m=`The triangle $${e[0]+e[1]+e[5]}$ has two angles of equal measure, so it is an isosceles triangle in $${e[1]}$.<br>`,m+=`The quadrilateral $${e[0]+e[1]+e[2]+e[3]}$ has diagonals that intersect in the middle, so it is a parallelogram.<br>`,m+="In a parallelogram, consecutive angles are supplementary (their sum is 180°).<br>",m+=` According to the coding, the angle $\\widehat{${e[2]+e[1]+e[5]}}$ is the sum of two supplementary angles. It is therefore a flat angle.<br>`;break}$.length>0&&(h+=K(w,$)),g.length>0&&(m+=K(C,g)),this.listeQuestions.indexOf(h)===-1&&(this.listeQuestions.push(h),this.listeCorrections.push(m),v++),S++}te(this)},this.classe===5?this.besoinFormulaireTexte=["Type of questions",[`Numbers separated by hyphens
1: About lengths of a drawn polygon
2: From a square as text
3: From a rectangle as text
4: To About angles in a drawn polygon
5: Blending`]]:this.besoinFormulaireTexte=["Type of questions",[`Numbers separated by hyphens
1: About lengths of a drawn polygon
2: From a square as text
3: From a rectangle as text
4: Blending`]]}export{ne as default};
//# sourceMappingURL=_Utiliser_le_codage_pour_decrire-MDGhM9Xo.js.map