File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/5R21-Vdpgrpw9.js
import{E as b,aj as d,r as u,j as o,c as $,a as f,g as m,bd as i,be as n,s as C,bO as x,l as R}from"./index-XCg2QAX4.js";const g="Subtraction of two relative integers",y=!0,D="mathLive",v=!0,A="AMCNum",T="11/11/2021",M="b6982",N="5R21";function E(p=20){b.call(this),this.sup=p,this.sup2=!1,this.titre=g,this.consigne="Calculate.",this.nbCols=3,this.nbColsCorr=2,this.interactifReady=y,this.interactifType=D,this.amcType=A,this.amcReady=v,this.correctionDetailleeDisponible=!0,this.correctionDetaillee=!0,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let c=[[-1,-1],[-1,1],[1,-1]];c=d(c,this.nbQuestions);for(let s=0,t,e,h,r,a,l=0;s<this.nbQuestions&&l<50;)t=u(1,this.sup),e=u(1,this.sup),h=c[s],t=t*h[0],e=e*h[1],this.sup2?(r=`$${t} - ${o(e)} =$`,this.interactif&&!$.isAmc&&(r=`$ ${t} - ${o(e)} = $`+f(this,s,{textBefore:""})),e>0?a=`$ ${t} - ${o(e)} = ${t-e} $`:this.correctionDetaillee?a=`$${t} - ${o(e)} = ${t} ${m(-e)} = ${t-e}$`:a=`$${t} - ${o(e)} = ${t-e}$`):(r="$"+i(t)+" -"+i(e)+" =$",this.interactif&&!$.isAmc&&(r="$"+i(t)+" -"+i(e)+" = $"+f(this,s,{texteAvant:""})),this.correctionDetaillee?a="$"+i(t)+" -"+i(e)+" ="+n(t)+" +"+n(-1*e)+" ="+n(t-e)+" $":a="$"+i(t)+" -"+i(e)+" ="+n(t-e)+" $"),this.listeQuestions.indexOf(r)===-1&&(this.listeQuestions.push(r),this.listeCorrections.push(a),C(this,s,[t-e,`(${m(t-e)})`],{signe:!0,digits:Math.max(2,x(t-e)),decimals:0}),s++),l++;R(this)},this.besoinFormulaireNumerique=["Maximum value",99999],this.besoinFormulaire2CaseACocher=["With simplified writing"]}export{v as amcReady,A as amcType,T as dateDeModifImportante,E as default,y as interactifReady,D as interactifType,N as ref,g as titre,M as uuid};
//# sourceMappingURL=5R21-Vdpgrpw9.js.map