summaryrefslogtreecommitdiff
path: root/js/Linear/DIFF_c.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/DIFF_c.js')
-rw-r--r--js/Linear/DIFF_c.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js
index 10c440bb..c57690c2 100644
--- a/js/Linear/DIFF_c.js
+++ b/js/Linear/DIFF_c.js
@@ -9,9 +9,9 @@ function DIFF_c() {
this.model.state = new ScilabDouble(this.x0);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([false,true]);
- this.exprs = [[strcat(sci2exp(this.x0[1-1]))],[strcat(sci2exp(this.x0[2-1]))]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DIFF_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 = [[strcat(sci2exp(this.x0[1-1]))],[strcat(sci2exp(this.x0[2-1]))]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DIFF_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);
}
DIFF_c.prototype.details = function DIFF_c() {
@@ -25,7 +25,7 @@ function DIFF_c() {
return options;
}
DIFF_c.prototype.set = function DIFF_c() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ask_again = false;
var ok = true;
@@ -48,7 +48,7 @@ function DIFF_c() {
var ask_again = true;
}
if (!ask_again) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.state = new ScilabDouble([this.x0],[this.xd0]);
this.model.out = new ScilabDouble([N]);
this.model.in = new ScilabDouble([N]);