diff options
Diffstat (limited to 'js/Sources/CURVE_c.js')
-rw-r--r-- | js/Sources/CURVE_c.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/Sources/CURVE_c.js b/js/Sources/CURVE_c.js index 46004f4e..a64f7824 100644 --- a/js/Sources/CURVE_c.js +++ b/js/Sources/CURVE_c.js @@ -18,9 +18,9 @@ function CURVE_c() { this.model.evtin = new ScilabDouble([1]); this.model.evtout = new ScilabDouble([1]); this.model.firing = new ScilabDouble([0]); - this.exprs = [[sci2exp(this.Method)],[sci2exp(this.xx)],[sci2exp(this.yy)],[this.PeriodicOption],[Graf]]; - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CURVE_c\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),this.gr_i); + var exprs = [[sci2exp(this.Method)],[sci2exp(this.xx)],[sci2exp(this.yy)],[this.PeriodicOption],[Graf]]; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CURVE_c\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),gr_i); return new BasicBlock(this.x); } CURVE_c.prototype.details = function CURVE_c() { @@ -37,7 +37,7 @@ function CURVE_c() { return options; } CURVE_c.prototype.set = function CURVE_c() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; var ok = false; var SaveExit = false; while (true) { @@ -54,7 +54,7 @@ function CURVE_c() { if (this.PeriodicOption=="y"||this.PeriodicOption=="Y") { var PO = 1; } else { - this.exprs[4-1] = "n"; + exprs[4-1] = "n"; var PO = 0; } var mtd = int(this.Method); @@ -84,7 +84,7 @@ function CURVE_c() { var tmpvar2 = cleandata(this.xy); this.xy = tmpvar2[0]; var N = size(this.xy,"r"); - this.exprs[5-1] = "n"; + exprs[5-1] = "n"; if (this.graf=="y"||this.graf=="Y") { var ipar = [[N],[mtd],[PO]]; var rpar = []; @@ -115,16 +115,16 @@ function CURVE_c() { var DChange = true; } if (DChange) { - this.exprs[2-1] = strcat(sci2exp(xy2.slice()[1-1])); - this.exprs[3-1] = strcat(sci2exp(xy2.slice()[2-1])); + exprs[2-1] = strcat(sci2exp(xy2.slice()[1-1])); + exprs[3-1] = strcat(sci2exp(xy2.slice()[2-1])); } - this.exprs[1-1] = sci2exp(New_methhod); + exprs[1-1] = sci2exp(New_methhod); if (oipar[3-1]==1) { var perop = "y"; } else { var perop = "n"; } - this.exprs[4-1] = perop; + exprs[4-1] = perop; var SaveExit = true; } else { var tmpvar4 = Do_Spline(N,mtd,this.xy.slice()[1-1],this.xy.slice()[2-1]); @@ -141,7 +141,7 @@ function CURVE_c() { var orpar = [[this.xy.slice()[1-1]],[this.xy.slice()[2-1]]]; } } - this.exprs[1-1] = sci2exp(mtd); + exprs[1-1] = sci2exp(mtd); var oipar = [[N],[mtd],[PO]]; var SaveExit = true; } @@ -155,7 +155,7 @@ function CURVE_c() { } this.model.rpar = new ScilabDouble(orpar); this.model.ipar = new ScilabDouble(oipar); - this.graphics.exprs = new ScilabDouble([this.exprs]); + this.graphics.exprs = new ScilabDouble([exprs]); this.x.model = this.model; this.x.graphics = this.graphics; break; |