File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5G40-GOkFQDMv.js
import{E as re,aj as ae,q as le,aF as E,r as m,h as Q,B as ce,ay as $e,aS as z,ap as C,C as u,aB as w,cu as he,u as T,I as A,_ as K,bG as me,bl as ue,an as pe,aN as $,k0 as v,o as R,l as ge,al as be}from"./index-XCg2QAX4.js";import{d as S,c as I}from"./cibles-EKRoDwBs.js";import{c as fe}from"./aleatoires-C4JUoVmT.js";import"./reperes-uV74d7Az.js";import"./dateEtHoraires-1H8goc58.js";const ye="Build parallelograms with self-correction device",ve="08/05/2022",Pe="b611a",De="5G40";function qe(){re.call(this),this.titre=ye,this.consigne="",this.nbQuestions=1,this.nbCols=1,this.nbColsCorr=1,this.sup=5,this.correctionDetaillee=!1,this.correctionDetailleeDisponible=!0,this.typeExercice="IEP",this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let k=[1,2,3,4];this.sup<5&&(k=[parseInt(this.sup)]);const X=ae(k,this.nbQuestions);for(let d=0,x,i,N=0;d<this.nbQuestions&&N<50;){const P=function(_){const ie=be(m(1,_)),ne=Number(m(1,_)).toString();return ie+ne},e=fe(5,"OQ",!0),p=`${e[0]+e[1]+e[2]+e[3]}`,g=[],b=[],n=le(0,0,e[4]),t=E(ce(n,$e(m(50,70)/10)),n,m(0,179)*Q([-1,1]),e[0]),r=E(t,n,180,e[2]),s=z(t,n,m(40,80)*Q([-1,1]),m(4,7,5)*Q([-1,1])/5,e[1]),o=E(s,n,180,e[3]),c=C(t,s,r,o),O=u(n,t),Y=u(n,s),j=u(n,r),ee=u(n,o),L=u(t,s),U=u(o,t),F=w(t,s),G=w(t,o),te=w(r,o),se=w(r,s),f=P(5),D=P(5),oe=P(5),H=S(r.x,r.y,5,.5,f),J=S(o.x,o.y,5,.5,D),W=S(s.x,s.y,5,.5,oe),l=I({x:H[0],y:H[1],rang:5,num:1,taille:.5,color:"gray"});l.opacite=.7;const y=I({x:J[0],y:J[1],rang:5,num:2,taille:.5,color:"gray"});y.opacite=.7;const q=I({x:W[0],y:W[1],rang:5,num:3,taille:.5,color:"gray"});q.opacite=.7;const M=Math.min(t.x,s.x,r.x,o.x)-3,Z=Math.min(t.y,s.y,r.y,o.y)-3,V=Math.max(t.x,s.x,r.x,o.x)+3,B=Math.max(t.y,s.y,r.y,o.y)+3;let h;const a=new he;switch(a.recadre(M,B),X[d]){case 1:this.consigne=`Construct the parallelogram $${p}$.`,i="Several constructions are possible:<br>",this.correctionDetaillee?(i+=`- Using the equality of lengths: $${e[0]+e[1]}=${e[3]+e[2]}$ and $${e[2]+e[1]}=${e[3]+e[0]}$.<br>`,i+=`- By drawing the parallel to $(${e[0]+e[1]})$ passing through $${e[3]}$ and the parallel to $(${e[3]+e[0]})$ passing through $${e[1]}$.<br>`,i+="- By using the property of diagonals which intersect in the middle.<br>",i+="We have chosen the first method which seems to us to be the most effective here.<br>"):i+=`Here is one using the equality of lengths: $${e[0]+e[1]}=${e[3]+e[2]}$ and $${e[2]+e[1]}=${e[3]+e[0]}$.<br>`,i+=`The $${e[2]}$ point is in the target's ${f} box.<br>`,L.styleExtremites="-|",U.styleExtremites="|-",h=C(o,t,s),g.push(L,U,h[1],l),b.push(c[0],c[1],l,v(o,r,30),v(s,r,30),$("||","red",t,s,o,r),$("///","blue",t,o,s,r)),a.parallelogramme3sommetsConsecutifs(o,t,s,r.nom);break;case 2:this.consigne=`Construct the parallelogram $${p}$.`,i="Several constructions are possible:<br>",this.correctionDetaillee?(i+=`- Using the equality of lengths: $${e[0]+e[1]}=${e[3]+e[2]}$ and $${e[2]+e[1]}=${e[3]+e[0]}$.<br>`,i+=`- By drawing the parallel to $(${e[0]+e[1]})$ passing through $${e[3]}$ and the parallel to $(${e[3]+e[0]})$ passing through $${e[1]}$.<br>`,i+="- By using the property of diagonals which intersect in the middle.<br>",i+="We have chosen the first method which seems to us to be the most effective here.<br>"):i+=`Here is one using the equality of lengths: $${e[0]+e[1]}=${e[3]+e[2]}$ and $${e[2]+e[1]}=${e[3]+e[0]}$.<br>`,i+=`The $${e[2]}$ point is in the target's ${f} box.<br>`,h=C(o,t,s),a.pointCreer(o,o.nom,0),a.pointCreer(t,t.nom,0),a.pointCreer(s,s.nom,0),a.regleSegment(o,t),a.regleSegment(t,s),a.regleMasquer(0),a.crayonMasquer(0),a.parallelogramme3sommetsConsecutifs(o,t,s,r.nom),g.push(T(t,s,o),h[1],l),b.push(c[0],c[1],l,v(o,r,30),v(s,r,30),$("||","red",t,s,o,r),$("///","blue",t,o,s,r));break;case 3:this.consigne=`Construct the parallelogram $${p}$ with center $${e[4]}$.`,i+=`O is the center of symmetry of the parallelogram $${p}$.<br>`,this.correctionDetaillee&&(i+=`The point $${e[3]}$ is the symmetric of the point $${e[1]}$ with respect to $${e[4]}$.<br>`,i+=`The point $${e[2]}$ is the symmetric of the point $${e[0]}$ with respect to $${e[4]}$.<br>`),i+=`The $${e[2]}$ point is in the ${f} box of target 1.<br>`,i+=`The $${e[3]}$ point is in the ${D} box of target 2.<br>`,h=C(n,t,s),a.parallelogramme2sommetsConsecutifsCentre(t,s,n),g.push(T(t,s,n),h[1],l,y),b.push(c[0],c[1],A(n),l,y,O,Y,j,ee,$("||","red",t,n,n,r),$("|||","blue",s,n,n,o));break;case 4:this.consigne=`Construct the parallelogram $${p}$ with center ${e[4]}.`,x+=`The point $${e[3]}$ is on the half-line $[${e[0]}x)$ and the point $${e[1]}$ is on the half-line $[${e[0]}y)$.<br>`,this.correctionDetaillee&&(i+=`The point $${e[2]}$ is the symmetric of the point $${e[0]}$ with respect to $${e[4]}$.<br>`,i+=`The symmetry of the line $(${e[0]+e[1]})$ with respect to $${e[4]}$ is the line passing through $${e[2]}$ parallel to $(${e[0]+e[1]})$.<br>`,i+=`The symmetry of the line $(${e[0]+e[3]})$ with respect to $${e[4]}$ is the line passing through $${e[2]}$ parallel to $(${e[0]+e[3]})$.<br>`),i+=`The $${e[2]}$ point is in the ${f} box of target 1.<br>`,i+=`The $${e[3]}$ point is in the ${D} box of target 2.<br>`,a.regleZoom(200),a.equerreZoom(200),a.parallelogrammeAngleCentre(o,t,s,n),g.push(F,G,T(n),A(n,t),K("x",me(pe(t,o),ue(o,.5),1)),K("y",z(s,t,4,1.3)),l,y,q),b.push(F,G,te,se,c[0],c[1],T(n),A(n),l,y,q,O,j,$("||","red",t,n,n,r));break}x=R({xmin:M,ymin:Z,xmax:V,ymax:B,pixelsParCm:20,scale:.5},g),i=R({xmin:M,ymin:Z,xmax:V,ymax:B,pixelsParCm:20,scale:.5},b),i+=a.htmlBouton(this.umeroExercice),this.questionJamaisPosee(d,x)&&(this.listeQuestions.push(x),this.listeCorrections.push(i),d++),N++}ge(this)},this.besoinFormulaireNumerique=["Type of questions",5,`1: Two consecutive sides
2: Three consecutive vertices
3: Two consecutive vertices and the center
4: One angle and the center
5: One of the random configurations`]}export{ve as dateDeModifImportante,qe as default,De as ref,ye as titre,Pe as uuid};
//# sourceMappingURL=5G40-GOkFQDMv.js.map