File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/4G20-2-eP_JH9jJ.js
import{E as c,aj as u,a as h,s as l,c as p,l as f}from"./index-ajJ0B2-K.js";const $="Determining the square root of a perfect square (mental calculation)",m=!0,C="AMCNum",d="mathLive",b=!0,q="f5cbd",Q="4G20-2";function y(){c.call(this),this.titre=$,this.amcReady=m,this.amcType=C,this.interactifReady=b,this.interactifType=d,this.nbQuestions=4,this.nbCols=2,this.nbColsCorr=2,this.besoinFormulaireNumerique=["Question wording",3,`1: Calculate the root of ...
2: Find the positive number whose square is ...
3: Mixture`],this.besoinFormulaire2Numerique=["Maximum integer",2,`1:144
2:256`],this.sup=1,this.sup2=2,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let o=[],s=[];this.sup=parseInt(this.sup),this.sup2=parseInt(this.sup2),this.sup===1?s=[1]:this.sup===2?s=[2]:this.sup===3&&(s=[1,2]),s=u(s,this.nbQuestions),this.sup2===1?o=[1,2,3,4,5,6,7,8,9,10,11,12]:o=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],o=u(o,this.nbQuestions);for(let t=0,n,a,i,e,r=0;t<this.nbQuestions&&r<50;)i=o[t],e=i*i,s[t]===1?n=`Calculate in head $\\sqrt{${e}}=$`+h(this,t):s[t]===2&&(n=`What is the positive number whose square is $${e}$?`+h(this,t)),a=`$\\sqrt{${e}}=${i}$`,l(this,t,i),this.listeQuestions.indexOf(n)===-1&&(p.isAmc&&(s[t]===1?(this.autoCorrection[t].enonce=`$\\sqrt{${e}}=\\dots$`,this.autoCorrection[t].propositions=[{texte:`$\\sqrt{${e}}=${i}$`,statut:""}]):(this.autoCorrection[t].enonce=`$${e} = \\dots^2$`,this.autoCorrection[t].propositions=[{texte:`$${e}=${i}^2$`,statut:""}]),this.autoCorrection[t].reponse.param={digits:2,decimals:0,exposantNbChiffres:0,exposantSigne:!1,signe:!1}),this.listeQuestions.push(n),this.listeCorrections.push(a),t++),r++;f(this)}}export{m as amcReady,C as amcType,y as default,b as interactifReady,d as interactifType,Q as ref,$ as titre,q as uuid};
//# sourceMappingURL=4G20-2-eP_JH9jJ.js.map