/* autogenerated from "macros/Linear/INTEGRAL.sci" */ function INTEGRAL() { INTEGRAL.prototype.get = function INTEGRAL() { } INTEGRAL.prototype.set = function INTEGRAL() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; model=arg1.model; while (true) { [ok,x0,reinit,satur,maxp,lowp,exprs]=scicos_getvalue("Set Integral block parameters",["Initial Condition","With re-intialization (1:yes, 0:no)","With saturation (1:yes, 0:no)","Upper limit","Lower limit"],list("vec",-1,"vec",1,"vec",1,"vec",-1,"vec",-1),exprs); if (!ok) { break } x0=x0.slice(); maxp=maxp.slice(); lowp=lowp.slice(); if (reinit!=0) { reinit=1; } if (satur!=0) { satur=1; if (size(maxp,"*")==1) { maxp=maxp*ones(x0); } if (size(lowp,"*")==1) { lowp=lowp*ones(x0); } if ((size(x0,1)!=size(maxp,1)||size(x0,1)!=size(lowp,1))) { message("x0 and Upper limit and Lower limit must have same size"); ok=false; } else if (or(maxp<=lowp)) { message("Upper limits must be > Lower limits"); ok=false; } else if (or(x0>maxp)||or(x0