diff options
Diffstat (limited to 'js/Linear/INTEGRAL.js')
-rw-r--r-- | js/Linear/INTEGRAL.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/INTEGRAL.js b/js/Linear/INTEGRAL.js index e10e8c60..622a10d1 100644 --- a/js/Linear/INTEGRAL.js +++ b/js/Linear/INTEGRAL.js @@ -12,9 +12,9 @@ function INTEGRAL() { this.model.rpar = new ScilabDouble(rpar); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabBoolean([false,true]); - this.exprs = string([[0],[0],[0],[this.maxp],[minp]]); - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([this.exprs]),this.gr_i); + var exprs = string([[0],[0],[0],[this.maxp],[minp]]); + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([exprs]),gr_i); this.x.graphics.id = "1/s"; return new BasicBlock(this.x); } @@ -32,7 +32,7 @@ function INTEGRAL() { return options; } INTEGRAL.prototype.set = function INTEGRAL() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; while (true) { var ok = true; this.x0 = inverse(arguments[0]["x0"]); @@ -88,7 +88,7 @@ function INTEGRAL() { var ok = tmpvar0[2]; } if (ok) { - this.graphics.exprs = new ScilabDouble([this.exprs]); + this.graphics.exprs = new ScilabDouble([exprs]); this.x.graphics = this.graphics; this.x.model = this.model; break; |