File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/4F12-OswUIeu6.js
import{a as q,c as U}from"./courbes-oSx9bP9E.js";import{E as W,h as w,r as u,n as j,bj as L,o as S,aa as T,P as Q,q as t,w as b,c as H,ax as O,l as X}from"./index-ajJ0B2-K.js";import{r as A,g as I}from"./reperes-w_D-727i.js";import{p as R}from"./Personne-zmVSe1SX.js";const B="Solve a problem based on reading a graphical representation",G=!0,J="AMCHybride",K="b428e",Z="4F12";function _(){W.call(this),this.titre=B,this.consigne="",this.nbQuestions=1,this.nbCols=1,this.nbColsCorr=1,this.nbQuestionsModifiable=!1,this.sup=4,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const D=[28.27,35.2,49.6,63.55,70.85,77.45,84.85,91.65],P=[10.95,12.65,14.15,15.5,16.7,17.9,19,20,21,21.9,22.8,23.7,24.5,25.3,26.1,26.8,27.6,28.2,29];let p,c,o,d,m,C,x,s,M,h,y,$;this.sup===1&&(d=w(["projectile","projectile2"])),this.sup===2&&(d="bike"),this.sup===3&&(d="temperature"),this.sup===4&&(d=w(["temperature","projectile","projectile2","bike"]));let i,e,g,Y,l,a,N,v,k,n,f;switch(d){case"projectile":p=w(D),e=Math.round(Math.sqrt(2)*p/10),c=9/e,i=r=>Math.max(-5*r**2+p*Math.sqrt(2)*r/2,0),h=A({yLegende:"height (in m)",xLegende:"time (in s)",xUnite:1*c,yUnite:.1*c,xMin:0,yMin:0,xMax:e+1,yMax:i(e/2)+20,xThickDistance:1,yThickDistance:10,grilleSecondaireY:!0,grilleSecondaireYDistance:2,grilleSecondaireYMin:0,grilleSecondaireYMax:i(e/2)+5}),a=U(i,{repere:h,xMax:e+1,step:.2}),o=j("0",-.5,0,"medium","black",1,"middle",!0),this.introduction="We have shown below the evolution of the height of a projectile launched from the ground (in m) as a function of time (in seconds).",this.introduction+="<br><br>"+S(Object.assign({},T([h,a,o]),{pixelsParCm:30,scale:1}),h,a,o),this.introduction+="<br><br>Using this graph, answer the following questions:",this.listeQuestions.push("How long does it take for the projectile to fall back to the ground?"),this.listeCorrections.push(`At the end of ${b(e)} s, the projectile falls to the ground because the curve passes through the point of coordinates $(${b(e)}~;~0)$.`),this.listeQuestions.push("What is the maximum height reached by the projectile?"),this.listeCorrections.push(`The highest point of the curve has the X value of $${b(e/2)}$ and the Y value of $${Math.round(i(e/2))}$ so the maximum height is $${Math.round(i(e/2))}$ m.`);break;case"projectile2":p=w(P),e=Math.round(p**2/10),c=52/e,i=r=>Math.max(-10*r**2/p**2+r,0),h=A({yLegende:"height (in m)",xLegende:"distance (in m)",xUnite:.25*c,yUnite:.5*c,xMin:0,yMin:0,xMax:e+4,yMax:i(e/2)+2.1,xThickDistance:4,yThickDistance:1,grilleSecondaireY:!0,grilleSecondaireYDistance:.25,grilleSecondaireYMin:0,grilleSecondaireYMax:i(e/2)+1}),a=U(i,{repere:h,step:.5}),o=j("0",-.5,0,"medium","black",1,"middle",!0),this.introduction="The trajectory of a projectile launched from the ground is shown below.",this.introduction+="<br><br>"+S(Object.assign({},T([h,a,o]),{pixelsParCm:30,scale:1}),h,a,o),this.introduction+="<br><br>Using this graph, answer the following questions:",this.listeQuestions.push("How far did the projectile fall to the ground?"),this.listeCorrections.push(`The projectile falls to the ground at a distance of ${e} m, because the curve passes through the coordinate point $(${b(e)}~;~0)$.`),this.listeQuestions.push("What is the maximum height reached by the projectile?"),this.listeCorrections.push(`The highest point of the curve has the X value of $${b(e/2)}$ and the Y value of $${Math.round(i(e/2))}$ so the maximum height is $${Math.round(i(e/2))}$ m.`);break;case"bike":C=u(1,4),x=u(1,3,C),s=C+x,l=A({yLegende:"distance (in km)",xLegende:"time (in min)",xMin:0,yMin:0,xMax:60,yMax:s+1,xUnite:.1,yUnite:1,xThickDistance:10,yThickDistance:1,grilleSecondaireY:!0,grilleSecondaireX:!0,grilleSecondaireYDistance:.2,grilleSecondaireXDistance:2,grilleSecondaireXMin:0,grilleSecondaireXMax:60,grilleSecondaireYMin:0,grilleSecondaireYMax:s+1}),Y=I(-1,-1,6,8,"black"),Y.opacite=1,M=u(1,3),o=j("0",-.7,0,"medium","black",1,"middle",!0),M===1&&(g=Q([t(0,0),t(1,C),t(2,s),t(3,s),t(4,0)],"blue"),y=20,$="from the 30th to the 40th minute"),M===2&&(g=Q([t(0,0),t(1,s),t(2,s),t(3,x),t(4,0)],"blue"),y=10,$="during the first 10 minutes"),M===3&&(g=Q([t(0,0),t(1,s),t(2,x),t(3,x),t(4,0)],"blue"),y=20,$="during the first 10 minutes"),g.epaisseur=2,N=R(),this.introduction=`${N} is cycling with her smartphone on a straight greenway that leaves her house. An application allows her to see how far from home she is.`,this.introduction+="<br><br>"+S(Object.assign({},T([l,g,o]),{pixelsParCm:30,scale:1}),o,l,g),this.introduction+="<br><br>Using this graph, answer the following questions:",this.listeQuestions.push("How long did she cycle?"),this.listeCorrections.push("She cycled for 40 minutes."),this.listeQuestions.push("How far did she travel in total?"),this.listeCorrections.push(`The farthest point from her house is ${s} km and then she returns home, so the total distance is ${2*s} km.`),this.listeQuestions.push(`What happens after ${y} minutes of cycling?`),this.listeCorrections.push("The distance remains constant even though it is on a straight path. So she took a break."),this.listeQuestions.push("When was it the fastest?"),this.listeCorrections.push(`She was the fastest ${$} where she completed ${s} km in 10 minutes.`);break;case"temperature":v=u(2,4),k=u(12,16),n=u(-5,15),f=n+u(5,12),o=n<0?j("0",-.5,0,"medium","black",1,"middle",!0):L(),l=A({xMin:0,yMin:n-1,yMax:f+2,xMax:24,xUnite:1,yUnite:1,xLegende:"Hour",yLegende:"Temperature (in °C)"}),a=q([[-2,n+2],[v,n],[k,f],[26,n+2]],{color:"blue",epaisseur:2,repere:l,xMin:0,xMax:24}),this.introduction="The evolution of the temperature over one day is shown below.",this.introduction+="<br><br>"+S(Object.assign({},T([l,a]),{pixelsParCm:30,scale:1}),l,o,a),this.introduction+="<br><br>Using this graph, answer the following questions:",this.listeQuestions.push("What is the coldest temperature of the day?"),this.listeCorrections.push(`The lowest temperature is ${n}°C.`),this.listeQuestions.push("What is the hottest temperature of the day?"),this.listeCorrections.push(`The highest temperature of the day is ${f}°C.`),this.listeQuestions.push("What time is it hottest?"),this.listeCorrections.push(`It is at ${k} h that it is hottest.`),this.listeQuestions.push("What time is it coldest?"),this.listeCorrections.push(`It is at ${v} h that it is the coldest.`);break}if(H.isAmc){m=this.introduction;for(let r=0;r<this.listeQuestions.length;r++)m+=`${r+1}) ${this.listeQuestions[r]}<br>`;switch(d){case"bike":this.autoCorrection[0]={enonce:m,propositions:[{type:"AMCNum",propositions:[{texte:this.listeCorrections[0],statut:"",reponse:{texte:"1)",valeur:40,param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCNum",propositions:[{texte:this.listeCorrections[1],statut:"",reponse:{texte:"1)",valeur:2*s,param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCOpen",propositions:[{texte:this.listeCorrections[2],statut:2}]},{type:"AMCOpen",propositions:[{texte:this.listeCorrections[3],statut:2}]}]};break;case"projectile":this.autoCorrection[0]={enonce:m,propositions:[{type:"AMCNum",propositions:[{texte:this.listeCorrections[0],statut:"",reponse:{texte:"1)",valeur:O(e),param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCNum",propositions:[{texte:this.listeCorrections[1],statut:"",reponse:{texte:"1)",valeur:Math.round(i(e/2)),param:{digits:3,decimals:0,signe:!1,approx:0}}}]}]};break;case"projectile2":this.autoCorrection[0]={enonce:m,propositions:[{type:"AMCNum",propositions:[{texte:this.listeCorrections[0],statut:"",reponse:{texte:"1)",valeur:e,param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCNum",propositions:[{texte:this.listeCorrections[1],statut:"",reponse:{texte:"1)",valeur:Math.round(i(e/2)),param:{digits:3,decimals:0,signe:!1,approx:0}}}]}]};break;case"temperature":this.autoCorrection[0]={enonce:m,propositions:[{type:"AMCNum",propositions:[{texte:this.listeCorrections[0],statut:"",reponse:{texte:"1)",valeur:n,param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCNum",propositions:[{texte:this.listeCorrections[1],statut:"",reponse:{texte:"1)",valeur:f,param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCNum",propositions:[{texte:this.listeCorrections[2],statut:"",reponse:{texte:"1)",valeur:k,param:{digits:2,decimals:0,signe:!1,approx:0}}}]},{type:"AMCNum",propositions:[{texte:this.listeCorrections[3],statut:"",reponse:{texte:"1)",valeur:v,param:{digits:2,decimals:0,signe:!1,approx:0}}}]}]};break}}else X(this)},this.besoinFormulaireNumerique=["Choice of problems",4,`1: Projectile
2: Bike ride
3: Temperature
4: Random`]}export{G as amcReady,J as amcType,_ as default,Z as ref,B as titre,K as uuid};
//# sourceMappingURL=4F12-OswUIeu6.js.map