File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/2F11-1-HTDSvU57.js
import{E as d,aj as b,h as f,r as h,W as F,F as $,w as c,m as r,j as n,a as Q,s as g,l as w,c as x}from"./index-hc8lvKav.js";import{d as v}from"./deprecatedFractions-crf_vsDW.js";const A="Déterminer l'image d'un nombre par une fonction de référence",M=!0,T="mathLive",R=!0,k="AMCNum",D="18/01/2022",L="b6cc0",P="2F11-1";function j(){d.call(this),this.nbQuestions=8,this.besoinFormulaireCaseACocher=["Fonction carré"],this.besoinFormulaire2CaseACocher=["Fonction cube"],this.besoinFormulaire3CaseACocher=["Fonction racine carrée"],this.besoinFormulaire4CaseACocher=["Fonction inverse"],this.sup=!0,this.sup2=!0,this.sup3=!0,this.sup4=!0,this.can=!1,this.nbCols=2,this.nbColsCorr=2,this.tailleDiaporama=3,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const o=[];this.sup&&o.push("carré"),this.sup2&&o.push("cube"),this.sup3&&o.push("racine carrée"),this.sup4&&o.push("inverse"),o.length===0&&o.push("carré");const u=b(o,this.nbQuestions),p=b([0,1],this.nbQuestions);for(let t=0,l,a,e,s,i,m=0;t<this.nbQuestions&&m<50;){switch(i=["f","g","h","p","q","r","s","t"][t%8],this.nbQuestions>3&&(i+="_"+parseInt(1+t/8)),u[t]){case"carré":e=h(-10,10,[0,1]),s=e*e,s=new $(s,1),a=`$${i}(${e}) = ${n(e)}^2 = ${n(e)} \\times ${n(e)} = ${r(s)}$`;break;case"cube":e=h(-5,5,[0,1]),s=e*e*e,s=new $(s,1),a=`$${i}(${e}) = ${n(e)}^3 = ${n(e)} \\times ${n(e)} \\times ${n(e)} = ${n(e*e)} \\times ${n(e)} = ${r(s)}$`;break;case"racine carrée":s=h(1,10),s=new $(s,1),e=s*s,a=`$${i}(${e}) = ${r(`\\sqrt{${e}}`)} = ${r(s)} $ car $ ${n(s)}^2 = ${e} $`;break;case"inverse":this.can?e=f([1,2,4,5,10]):e=this.can?f([1,2,4,5,10]):Math.pow(2,h(0,5))*Math.pow(5,h(0,5)),Math.random()<.25&&(e=F(1/e,6)),Math.random()<.5&&(e*=-1),s=new $(1,e),a=`$${i}(${c(e)}) = ${r(v(1,e))} = ${r(c(s))}$`;break}const C=p[t]?`$${i}(${c(e)})$`:`l'image de $${c(e)}$ par la fonction $${i}$`;p[t]&&(a+=`<br>L'image de $${c(e)}$ par la fonction $${i}$ est donc $${r(c(s))}$.`),l=`Soit $${i}$ la fonction ${u[t]}.<br>
Calculer ${C}.`,l+=Q(this,t,"inline largeur20"),this.questionJamaisPosee(t,u[t],e)&&(this.listeQuestions.push(l),this.listeCorrections.push(a),g(this,t,s,{formatInteractif:"fractionEgale"}),t++),m++}w(this),x.isHtml||(this.canEnonce=this.listeQuestions[0],this.correction=this.listeCorrections[0],this.canReponseACompleter="")}}export{R as amcReady,k as amcType,D as dateDePublication,j as default,M as interactifReady,T as interactifType,P as ref,A as titre,L as uuid};
//# sourceMappingURL=2F11-1-HTDSvU57.js.map