HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6M30-R3H16QCA.js
import{E as M,ag as N,aj as L,D as c,r as m,c as a,m as d,w as i,h as R,p as B,s as E,bp as F,a as W,bO as j,l as I,f as v}from"./index-ajJ0B2-K.js";import{d as k}from"./deprecatedFractions-MjvQvhWQ.js";const O="Calculate the volume of given solids",P=!0,G="AMCHybride",H=!0,J=["qcm","mathLive"],z="05/11/2023",K="04b0d",S="6M30";function X(){M.call(this),this.titre=O,this.nbQuestions=4,this.nbCols=1,this.nbColsCorr=1,this.sup=1,this.classe=6,this.amcReady=P,this.amcType=G,this.interactifReady=H,this.interactifType=J,this.sup3=2,this.sup4=3;let g;this.nouvelleVersion=function(){this.interactifType=this.sup3===2?"mathLive":"qcm";let y=!1;switch(this.sup===3&&(this.sup=1,y=!0),this.autoCorrection=[],this.classe){case 6:g=2;break;case 5:g=4;break;case 4:g=6;break;case 3:g=7;break}const D=N({min:1,max:g,defaut:g+1,melange:g+1,nbQuestions:Math.max(this.nbQuestions,g),saisie:this.sup4,shuffle:!0}),Q=L(D,this.nbQuestions);this.listeQuestions=[],this.listeCorrections=[];const t=[[v(1)+"\\text{m}",v(1)+"\\text{m}^3","m^3"],[v(1)+"\\text{dm}",v(1)+"\\text{dm}^3","dm^3"],[v(1)+"\\text{cm}",v(1)+"\\text{cm}^3","cm^3"],[v(1)+"\\text{mm}",v(1)+"\\text{mm}^3","mm^3"]];let q,C,V;this.sup2?(q=new c(m(1,9)).div(10).mul(m(0,1)),C=new c(m(1,9)).div(10).mul(m(0,1)),V=new c(m(1,9)).div(10).mul(m(0,1))):(q=new c(0),C=new c(0),V=new c(0));for(let x=0,r,u,h,l,$,n,o,e,p,f,A,b,s,T=0;x<this.nbQuestions&&T<50;){switch(this.autoCorrection[x]={},r="Calculate volume",Q[x]){case 1:n=new c(m(2,10)).plus(q),s=n.pow(3),e=m(0,3),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=s.eq(s.round())?"":`, rounded to the nearest $${t[e][1]}$, `,r+=` of a cube of $${i(n,1)} ${t[e][0]}$ of edge.`,u=`$\\mathcal{V}= c^3 =c \\times c \\times c = ${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}=`,s.eq(s.round())?u+=`${d(`${i(s)}${t[e][1]}`)}$`:u+=`${i(s)}${t[e][1]}\\approx ${d(`${i(s.round())}${t[e][1]}`)}$`,p=s.round(),n.eq(6)?f=n.mul(24).round():f=n.pow(2).mul(6).round(),n.eq(2)?A=new c(24):A=n.mul(4).round(),b=n.mul(6).round();break;case 2:this.sup===1?(e=m(0,3),l=q.plus(m(2,5)),$=C.plus(m(3,6)),h=V.plus(m(6,10)),s=l.mul(h).mul($),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=s.eq(s.round())?"":`, rounded to the nearest $${t[e][1]}$, `,r+=` a right block of $${i(l,1)}${t[e][0]}$ width, $${i(h,1)}${t[e][0]}$ length and $${i($)}${t[e][0]}$ height.`,u=`$\\mathcal{V}= l \\times L \\times h = ${i(l,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i(h,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i($)}${a.isAmc?t[e][2]:t[e][0]}=`,s.eq(s.round())?u+=`${d(`${i(s)}${t[e][1]}`)}$`:u+=`${i(s)}${t[e][1]}\\approx ${d(`${i(s.round())}${t[e][1]}`)}$`,p=s.round(),f=l.plus(h).plus($).mul(6).round(),f.eq(p)&&(f=f.div(2).round()),A=l.mul(2).mul(h).plus(h.mul($).mul(2)).plus(l.mul($).mul(2)).round(),b=l.plus(h).plus($).mul(2).round()):(e=m(1,2),l=q.plus(m(2,5)),$=C.plus(m(3,6)).mul(10),h=new c(m(6,10)).div(10),s=l.mul(h).mul($),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=`, rounded to the nearest $${t[e][1]}$, `,r+=` a right block of $${i(l,1)}${t[e][0]}$ width, $${i(h,1)}${t[e-1][0]}$ length and $${i($)}${t[e+1][0]}$ height.`,u=`$\\mathcal{V}= l \\times L \\times h = ${i(l,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i(h,1)}${t[e-1][0]}\\times${i($,0)}${t[e+1][0]}=${i(l,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i(h*10)}${a.isAmc?t[e][2]:t[e][0]}\\times${i($.div(10),1)}${a.isAmc?t[e][2]:t[e][0]}=`,s.eq(s.round())?u+=`${d(`${i(s)}${t[e][1]}`)}$`:u+=`${i(s)}${t[e][1]}\\approx ${d(`${i(s.round())}${t[e][1]}`)}$`,p=s.round(),f=l.plus(h).plus($).mul(6).round(),A=l.mul(2).mul(h).plus(h.mul($).mul(2)).plus(l.mul($).mul(2)).round(),b=l.plus(h).plus($).mul(2).round());break;case 3:if(this.sup===1){e=m(0,3),o=new c(m(2,10)),$=new c(m(2,15)),r+=a.isAmc?` in$${t[e][1]}$`:"",y?(s=o.pow(2).mul($).mul(3),r+=", taking $\\pi \\approx 3$,"):(s=o.pow(2).mul($).mul(c.acos(-1)),r+=`, rounded to the nearest $${t[e][1]}$, `);let w=R([!0,!1]);w=!0,w?r+=`of a cylinder of $${2*o}${t[e][0]}$ in diameter and $${i($,0)}${t[e][0]}$ in height.`:r+=`of a cylinder of $${o}${t[e][0]}$ radius and $${i($,0)}${t[e][0]}$ height.`,y?(u=w?`$R = diameter \\div 2 = ${2*o}${t[e][0]} \\div 2 = ${o}${t[e][0]}$<br>`:"",u+=`$\\mathcal{V}=\\pi \\times R ^2 \\times h =\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${i($,0)}${a.isAmc?t[e][2]:t[e][0]}=${i(o.pow(2).mul($),0)}\\pi${t[e][1]}\\approx ${i(o.pow(2).mul($),0)}\\times 3${t[e][1]} \\approx${d(`${i(s.round())}${t[e][1]}`)}$`):(u=w?`$R = diameter \\div 2 = ${2*o}${t[e][0]} \\div 2 = ${o}${t[e][0]}$<br>`:"",u+=`$\\mathcal{V}=\\pi \\times R ^2 \\times h =\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${i($,0)}${a.isAmc?t[e][2]:t[e][0]}=${i(o.pow(2).mul($),0)}\\pi${t[e][1]}\\approx${d(`${i(s.round())}${t[e][1]}`)}$`)}else e=m(2,3),o=new c(m(2,10)),$=new c(m(20,150)),s=o.pow(2).mul($).mul(c.acos(-1)),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=`, rounded to the nearest $${t[e][1]}$, `,r+=` of a cylinder of $${o}${t[e][0]}$ radius and $${i($.div(10),1)}${t[e-1][0]}$ height.`,u=`$\\mathcal{V}=\\pi \\times R ^2 \\times h =\\pi\\times\\left(${i(o,0)}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${i($.div(10),1)}${t[e-1][0]}=\\pi\\times${i(o.mul(o),0)}${a.isAmc?t[e][2]:t[e][0]}^ 2\\times${i($,0)}${a.isAmc?t[e][2]:t[e][0]}=${i(o.pow(2).mul($),0)}\\pi${t[e][1]}\\approx${d(`${i(s.round())}${t[e][1]}`)}$`;p=s.round(),f=s.mul(4).round(),A=s.div(2).round(),b=s.mul(2).round();break;case 4:this.sup===1?(e=m(0,3),n=V.plus(m(2,10)),$=m(2,5),l=m(6,10),s=n.mul($*l).div(2),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=s.eq(s.round())?"":`, rounded to the nearest $${t[e][1]}$, `,R([!1,!0])?r+=` of a right prism of height $${l}${t[e][0]}$. The base of the right prism is a right triangle whose sides of the right angle measure $${i(n,1)}${t[e][0]}$ and $${$}${t[e][0]}$.`:r+=` of a right prism of height $${l}${t[e][0]}$ and whose bases are triangles of base $${i(n,1)}${t[e][0]}$ and of corresponding height $${$}${t[e][0]}$.`,u=`$\\mathcal{V}=\\mathcal{B} \\times h=\\dfrac{${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${$}${a.isAmc?t[e][2]:t[e][0]}}{2}\\times${l}${a.isAmc?t[e][2]:t[e][0]}=`):(e=m(1,2),n=V.plus(m(2,10)),$=new c(m(30,50)),l=new c(m(5,15)).div(10),s=n.mul($).mul(l).div(2),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=s.eq(s.round())?"":`, rounded to the nearest $${t[e][1]}$, `,r+=` of a right prism of height $${i(l,1)}${t[e-1][0]}$ and whose bases are triangles of base $${i(n,1)}${t[e][0]}$ and of corresponding height $${$}${t[e+1][0]}$.`,u=`$\\mathcal{V}=\\mathcal{B} \\times h=\\dfrac{${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${$}${t[e+1][0]}}{2}\\times${i(l,1)}${t[e-1][0]}=\\dfrac{${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\times${i($.div(10),1)}${a.isAmc?t[e][2]:t[e][0]}}{2}\\times${i(l.mul(10),0)}${a.isAmc?t[e][2]:t[e][0]}=`),s.eq(s.round())?u+=`${d(`${i(s,2)}${t[e][1]}`)}$`:u+=`${i(s,2)}${t[e][1]}\\approx ${d(`${i(s.round())}${t[e][1]}`)}$`,p=s.round(),f=s.mul(4).round(),A=n.plus($).mul(l).round(),b=s.mul(2).round();break;case 5:if(this.sup===1){e=m(0,3),o=m(2,10),$=m(2,15),r+=a.isAmc?` in$${t[e][1]}$`:"",y?(s=new c(o*o*$).mul(3).div(3),r+=", taking $\\pi \\approx 3$,"):(s=new c(o*o*$).mul(c.acos(-1)).div(3),r+=`, rounded to the nearest $${t[e][1]}$, `);const w=m(0,1);w?r+=`of a cone of $${2*o}${t[e][0]}$ in diameter and $${$}${t[e][0]}$ in height.`:r+=`of a cone of $${o}${t[e][0]}$ radius and $${$}${t[e][0]}$ height.`,y?(u=w?`$R = diameter \\div 2 = ${2*o}${t[e][0]} \\div 2 = ${o}${t[e][0]}$<br>`:"",u+=`$\\mathcal{V}=\\dfrac{1}{3} \\times \\mathcal{B} \\times h=\\dfrac{1}{3}\\times\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${$}${a.isAmc?t[e][2]:t[e][0]}=${k(o*o*$,3)}\\pi${t[e][1]}\\approx${k(o*o*$,3)}\\times 3 \\approx${d(`${i(s.round())}${t[e][1]}`)}$`):(u=w?`$R = diameter \\div 2 = ${2*o}${t[e][0]} \\div 2 = ${o}${t[e][0]}$<br>`:"",u+=`$\\mathcal{V}=\\dfrac{1}{3} \\times \\mathcal{B} \\times h=\\dfrac{1}{3}\\times\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${$}${a.isAmc?t[e][2]:t[e][0]}=${k(o*o*$,3)}\\pi${t[e][1]}\\approx${d(`${i(s.round())}${t[e][1]}`)}$`)}else e=m(2,3),o=m(2,10),$=m(20,150),s=new c(o*o*$).mul(c.acos(-1)).div(3),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=`, rounded to the nearest $${t[e][1]}$, `,r+=`of a cone of $${o}${t[e][0]}$ radius and $${i($/10,1)}${t[e-1][0]}$ height.`,u=`$\\mathcal{V}=\\dfrac{1}{3} \\times \\mathcal{B} \\times h=\\dfrac{1}{3}\\times\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${i($/10,1)}${t[e-1][0]}=\\dfrac{1}{3}\\times\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${i($)}${a.isAmc?t[e][2]:t[e][0]}=${k(o*o*$,3)}\\pi\\approx${d(`${i(s.round())}${t[e][1]}`)}$`;p=s.round(),f=s.mul(4).round(),A=s.div(2).round(),b=s.mul(2).round();break;case 6:this.sup===1?(e=m(0,3),n=C.plus(m(2,10)),$=m(2,5),l=m(6,10),s=n.mul(n).mul($).div(3),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=s.eq(s.round())?"":`, rounded to the nearest $${t[e][1]}$, `,r+=` of a pyramid of height $${$}${t[e][0]}$ and whose base is a square of side $${i(n,1)}${t[e][0]}$.`,u=`$\\mathcal{V}=\\dfrac{1}{3} \\times \\mathcal{B} \\times h=\\dfrac{1}{3}\\times\\left(${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${$}${a.isAmc?t[e][2]:t[e][0]}`,s.eq(s.round())?u+=`=${d(`${i(s.round())}${t[e][1]}`)}$`:u+=`\\approx${d(`${i(s.round())}${t[e][1]}`)}$`):(e=m(1,2),n=C.plus(m(2,10)),$=m(30,50),l=new c(m(5,15)).div(10),s=n.mul(n).mul($).div(3),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=s.eq(s.round())?"":`, rounded to the nearest $${t[e][1]}$, `,r+=` of a pyramid of height $${i($/10,1)}${t[e-1][0]}$ and whose base is a square of side $${i(n,1)}${t[e][0]}$.`,u=`$\\mathcal{V}=\\dfrac{1}{3} \\times \\mathcal{B} \\times h=\\dfrac{1}{3}\\times\\left(${i(n,1)}${a.isAmc?t[e][2]:t[e][0]}\\right)^2\\times${i($/10,1)}${t[e-1][0]}=\\dfrac{1}{3}\\times${i(n.mul(n),2)}${a.isAmc?t[e][2]:t[e][0]}^2\\times${i($)}${a.isAmc?t[e][2]:t[e][0]}`,s.eq(s.round())?u+=`=${d(`${i(s.round())}${t[e][1]}`)}$`:u+=`\\approx${d(`${i(s.round())}${t[e][1]}`)}$`),p=s.round(),f=s.mul(3).round(),A=s.mul(3).div(4).round(),b=s.div(2).round();break;case 7:e=m(0,3),o=m(2,10),s=new c(o).pow(3).mul(4).mul(c.acos(-1)).div(3),r+=a.isAmc?` in$${t[e][1]}$`:"",r+=`, rounded to the nearest $${t[e][1]}$, `,r+=` of a ball of radius $${o}${t[e][0]}$.`,u=`$\\mathcal{V}=\\dfrac{4}{3} \\times \\pi \\times R^3=\\dfrac{4}{3}\\times\\pi\\times\\left(${o}${a.isAmc?t[e][2]:t[e][0]}\\right)^3=${k(4*o*o*o,3)}\\pi${t[e][1]}\\approx${d(`${i(s.round())}${t[e][1]}`)}$`,p=s.round(),f=s.mul(3).round(),A=s.mul(3).div(4).round(),b=s.div(2).round();break}this.autoCorrection[x].enonce=`${r}
`,this.autoCorrection[x].propositions=[{texte:`$${i(p)} ${t[e][1]}$`,statut:!0},{texte:`$${i(f)} ${t[e][1]}$`,statut:!1},{texte:`$${i(A)} ${t[e][1]}$`,statut:!1},{texte:`$${i(b)} ${t[e][1]}$`,statut:!1}],p=p.toNumber(),f=f.toNumber(),A=A.toNumber(),b=b.toNumber(),this.interactif&&this.interactifType==="qcm"?r+=B(this,x).texte:(E(this,x,new F(p,t[e][2]),{formatInteractif:"units"}),r+=W(this,x,"units[volumes]",{texteAvant:"<br>"+v(12)+"You should remember to indicate the unit for the response volume:"})),a.isAmc&&(this.sup3===1?this.autoCorrection[x]={enonce:"",enonceAvant:!1,propositions:[{type:"qcmMono",enonce:r,propositions:[{texte:`$${i(p)} ${t[e][1]}$`,statut:!0},{texte:`$${i(f)} ${t[e][1]}$`,statut:!1},{texte:`$${i(A)} ${t[e][1]}$`,statut:!1},{texte:`$${i(b)} ${t[e][1]}$`,statut:!1}],options:{ordered:!1}}]}:this.autoCorrection[x]={enonce:r+"\\\\Write the calculation:",enonceAvant:!0,options:{multicols:!0,barreseparation:!1,multicolsAll:!1,numerotationEnonce:!0},propositions:[{type:"AMCOpen",propositions:[{texte:u,numQuestionVisible:!1,enonce:"",statut:6}]},{type:"AMCNum",propositions:[{texte:"",statut:"",reponse:{texte:"",valeur:[p],param:{digits:j(p)+m(0,2),decimals:0,signe:!1,approx:0}}}]}]}),this.questionJamaisPosee(x,p,f,A,b)&&(this.listeQuestions.push(r),this.listeCorrections.push(u),x++),T++}I(this),this.sup===1&&y&&(this.sup=3)},this.besoinFormulaireNumerique=["Difficulty level",2,`1: Without conversion
2: With conversions`],this.besoinFormulaire2CaseACocher=["With decimals",!1],this.besoinFormulaire3Numerique=["Type of interactive exercise or AMC",2,`1: QCM
2: Numerical`],this.besoinFormulaire4Texte=["Type of solids",`Numbers separated by hyphens
1: Cubes
2: Right tiles
3: Mixture`]}export{P as amcReady,G as amcType,z as dateDeModifImportante,X as default,H as interactifReady,J as interactifType,S as ref,O as titre,K as uuid};
//# sourceMappingURL=6M30-R3H16QCA.js.map