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/5R22-P7lcfVBB.js
import{E as D,h as g,r as N,al as o,g as v,c as x,f as T,a as k,kh as Q,kj as R,ki as l,kg as C,bd as m,az as A,be as u,s as M,bO as S,l as E}from"./index-XCg2QAX4.js";const H="Perform a sequence of additions and subtractions of relative numbers",P=!0,L="mathLive",O=!0,j="AMCOpenNum",V="f6ea7",w="5R22";function z(q=20){D.call(this),this.sup=q,this.sup2=!1,this.titre=H,this.consigne="Calculate, detailing the calculations.",this.nbCols=2,this.nbColsCorr=2,this.nbQuestions=6,this.interactifReady=P,this.interactifType=L,this.amcType=j,this.amcReady=O,this.listeAvecNumerotation=!1,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let a,p;for(let t=0,e,s,i,r,$,f,n,y=0;t<this.nbQuestions&&y<50;){a=[],p=[],e=-1,s=g([-1,1]),e===-1&s===-1?i=1:i=g([-1,1]),e=N(1,this.sup)*e,s=N(1,this.sup)*s,i=N(1,this.sup)*i,r=N(1,this.sup)*g([-1,1]),$=N(1,this.sup)*g([-1,1]);const h=g([-1,1]),b=g([-1,1]),d=g([-1,1]);let c;h===1&b===1?c=-1:h===-1&b===-1?c=1:c=g([-1,1]),this.sup2?(f=`$${o(t+1)} = ${e}${v(s)}${v(i)}${v(r)}${v($)}$`,this.interactif&&x.isHtml&&(f+=`$${T(1)} = $`+k(this,t,"largeur25 inline nospacebefore")),!x.isHtml&&!x.isAmc&&(f+=`<br>$ ${o(t+1)} =$`),a=Q([e,s,i,r,$]),n=`$${o(t+1)}=${R(e,"blue","#f15929")}${l(s)}${l(i)}${l(r)}${l($)}$<br>`,n+=`$${o(t+1)}=`,C([e,s,i,r,$])[0]!==0&&C([e,s,i,r,$])[1]!==0?(n+=`${R(a[0],"blue","#f15929")}${l(a[1])}${l(a[2])}${l(a[3])}${l(a[4])}$<br>`,n+=`$${o(t+1)}=`,n+=`${R(C([e,s,i,r,$])[0],"blue","#f15929")}${l(C([e,s,i,r,$])[1])}$<br>`,n+=`$${o(t+1)}=`,n+=`${R(e+s+i+r+$,"blue","#f15929")}$`):C([e,s,i,r,$])[0]!==0?n+=`${R(C([e,s,i,r,$])[0],"blue","#f15929")}$`:n+=`${l(C([e,s,i,r,$])[1])}$`):(f=`$${o(t+1)} = ${m(e)}${A(h)}${m(s)}${A(b)}${m(i)}${A(c)}${m(r)}${A(d)}${m($)}$`,this.interactif&&x.isHtml&&(f+=`$${T(1)} = $`+k(this,t,"largeur25 inline nospacebefore")),!x.isHtml&&!x.isAmc&&(f+=`<br>$ ${o(t+1)} =$`),n=`$${o(t+1)} = ${e}${A(h)}${m(s)}${A(b)}${m(i)}${A(c)}${m(r)}${A(d)}${m($)}$`,n+=`<br>$ ${o(t+1)}= ${u(e)}+${u(h*s)}+${u(b*i)}+${u(c*r)}+${u(d*$)} $`,a=Q([e,h*s,b*i,c*r,d*$]),a[0]>0&a[4]<0&&(n+=`<br>$ ${o(t+1)}= ${u(a[0])}+${u(a[1])}+${u(a[2])}+${u(a[3])}+${u(a[4])} $`),p=C([a[0],a[1],a[2],a[3],a[4]]),p[0]!==0&&p[1]!==0?(n+=`<br>$ ${o(t+1)}= ${u(p[0])}+${u(p[1])} $`,n+=`<br>$ ${o(t+1)}= ${l(e+h*s+b*i+c*r+d*$)} $<br>`):p[0]!==0?n+=`<br>$ ${o(t+1)}=${l(p[0])}$`:n+=`<br>$ ${o(t+1)}=${l(p[1])}$<br>`),this.listeQuestions.indexOf(f)===-1&&(this.listeQuestions.push(f),this.listeCorrections.push(n),this.sup2?(M(this,t,e+s+i+r+$,{signe:!0}),x.isAmc&&(this.autoCorrection[t]={enonce:this.consigne+"<br>"+f,propositions:[{texte:n,statut:3,feedback:""}],reponse:{texte:"result",valeur:e+s+i+r+$,param:{digits:Math.max(2,S(e+s+i+r+$)),decimals:0,signe:!0,exposantNbChiffres:0,exposantSigne:!1,approx:0}}})):(M(this,t,e+h*s+b*i+c*r+d*$,{signe:!0}),x.isAmc&&(this.autoCorrection[t]={enonce:this.consigne+"<br>"+f,propositions:[{texte:n,statut:3,feedback:""}],reponse:{texte:"result",valeur:e+h*s+b*i+c*r+d*$,param:{digits:Math.max(2,S(e+h*s+b*i+c*r+d*$)),decimals:0,signe:!0,exposantNbChiffres:0,exposantSigne:!1,approx:0}}})),t++),y++}E(this)},this.besoinFormulaireNumerique=["Maximum value",99999],this.besoinFormulaire2CaseACocher=["With simplified writing"]}export{O as amcReady,j as amcType,z as default,P as interactifReady,L as interactifType,w as ref,H as titre,V as uuid};
//# sourceMappingURL=5R22-P7lcfVBB.js.map