File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/P017-DTPn0h2i.js
import{E as T,c as v,q as f,bk as k,aK as H,F as h,W as B,aG as F,a8 as c,a7 as p,K as L,bD as $,aA as w,R as l,o as G,w as A,f as K,l as j}from"./index-ajJ0B2-K.js";const I="Frame the area of a disk",O="P017",V="0ff0f";function W(){T.call(this),this.titre=I,this.consigne="",this.spacing=v.isHtml?2:1,this.nbCols=1,this.nbQuestions=1,this.sup=10,this.sup2=10,this.nouvelleVersion=function(){let x="";this.listeQuestions=[],this.listeCorrections=[""];let R=[];const e=f(0,0),m=this.sup2,P={xmin:-m-1,ymin:-m-1,xmax:m+1,ymax:m+1,pixelsParCm:30,scale:.7,mainlevee:!1},Q=k(e,m,"red");Q.epaisseur=2;const N=m;let s=e,D=s,d=s,g=s,n,r,u,a,t,i,E,y,q,b;x+=`Le disque a pour rayon ${H(m+" cm")}.<br>
Pour chaque étape, encadrons le disque entre une figure basée sur un maximum de carrés et une figure basée sur un minimum de carrés.
Encadrons ensuite l'area of the disc by l'aire de chaque figure.<br>`;for(let o=1;o<=this.sup;o++){x+=H(` ${o} step:`),y=0,q=0,R=[Q],s=e,D=s,d=s,g=s,b=new h(N,o),u=new h(0,o),a=new h(N,o),E=B(a*a,4),t=new h(0,o),i=b;for(let C=1;C<=o;C++){for(;F(e,s)<m;)D=s,d=c(e,p(a.num/a.den,t.num/t.den)),g=c(e,p(a.num/a.den,i.num/i.den)),s=c(e,p(u.num/u.den,i.num/i.den)),n=L([D,d,g,s],"green"),r=$(n,w(e,f(e.x,e.y+1))),n.couleurDeRemplissage=l("green"),n.opaciteDeRemplissage=.5,r.color=l("green"),r.couleurDeRemplissage=l("green"),r.opaciteDeRemplissage=.5,R.push(n,r),n=$(n,w(e,f(e.x+1,e.y))),r=$(r,w(e,f(e.x+1,e.y))),y=y+4,n.color=l("green"),n.couleurDeRemplissage=l("green"),n.opaciteDeRemplissage=.5,r.color=l("green"),r.couleurDeRemplissage=l("green"),r.opaciteDeRemplissage=.5,R.push(n,r),t=i,i=i.sommeFraction(b);t=new h(0,o),i=b,u=a,a=a.sommeFraction(b),s=c(e,p(u.num/u.den,t.num/t.den)),D=s,d=s,g=s}s=e,t=new h(0,o),i=b,u=new h(0,o),a=new h(N,o);for(let C=1;C<=o;C++){for(D=s,d=c(e,p(a.num/a.den,t.num/t.den)),g=c(e,p(a.num/a.den,i.num/i.den)),s=c(e,p(u.num/u.den,i.num/i.den));F(e,d)<=m&&F(e,g)<=m&&F(e,s)<=m;)n=L([D,d,g,s],"blue"),r=$(n,w(e,f(e.x,e.y+1))),n.couleurDeRemplissage=l("blue"),n.opaciteDeRemplissage=.5,r.color=l("blue"),r.couleurDeRemplissage=l("blue"),r.opaciteDeRemplissage=.5,R.push(n,r),n=$(n,w(e,f(e.x+1,e.y))),r=$(r,w(e,f(e.x+1,e.y))),q=q+4,n.color=l("blue"),n.couleurDeRemplissage=l("blue"),n.opaciteDeRemplissage=.5,r.color=l("blue"),r.couleurDeRemplissage=l("blue"),r.opaciteDeRemplissage=.5,R.push(n,r),t=i,i=i.sommeFraction(b),D=s,d=c(e,p(a.num/a.den,t.num/t.den)),g=c(e,p(a.num/a.den,i.num/i.den)),s=c(e,p(u.num/u.den,i.num/i.den));t=new h(0,o),i=b,u=a,a=a.sommeFraction(b),s=c(e,p(u.num/u.den,t.num/t.den)),D=s,d=s,g=s}x+=G(P,R),x+=`<br>${q} squares < Disc area < ${y} squares<br>`,x+=`But the area of a square is $${A(E)}${K()}cm^2$ (or approximately).<br>`,x+=`$${A(q*E)}${K()}cm^2$ < Disc area < $${A(y*E)}${K()}cm^2$<br>`,x+=v.isHtml?"<br>":"\\newpage"}this.listeQuestions.push(x),j(this)},this.besoinFormulaireNumerique=["Number of steps (between 1 and 50)",50],this.besoinFormulaire2Numerique=["Disc radius (integer between 1 and 20)",20]}export{W as default,O as ref,I as titre,V as uuid};
//# sourceMappingURL=P017-DTPn0h2i.js.map