diff options
Diffstat (limited to 'js/Linear/DLSS.js')
-rw-r--r-- | js/Linear/DLSS.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/DLSS.js b/js/Linear/DLSS.js index 69f34f7c..eb201209 100644 --- a/js/Linear/DLSS.js +++ b/js/Linear/DLSS.js @@ -11,10 +11,10 @@ function DLSS() { this.model.in1 = new ScilabDouble([1]); this.model.out = new ScilabDouble([1]); this.model.evtin = new ScilabDouble([1]); - this.model.dstate = this.x0.slice(); + this.model.dstate = new ScilabDouble(this.x0.slice()); this.model.rpar = new ScilabDouble([this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]); this.model.blocktype = new ScilabString(["d"]); - this.model.dep_ut = [false,false]; + this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[strcat(sci2exp(this.A))],[strcat(sci2exp(this.B))],[strcat(sci2exp(this.C))],[strcat(sci2exp(this.D))],[strcat(sci2exp(this.x0))]]; var gr_i = []; this.x = standard_define([4,2],this.model,exprs,gr_i); @@ -89,12 +89,12 @@ function DLSS() { var mmm = [false,false]; } if (or(this.model.dep_ut!=mmm)) { - this.model.dep_ut = mmm; + this.model.dep_ut = new ScilabDouble(mmm); } } else { - this.model.dep_ut = [false,false]; + this.model.dep_ut = new ScilabDouble([false,false]); } - this.model.dstate = this.x0.slice(); + this.model.dstate = new ScilabDouble(this.x0.slice()); this.model.rpar = new ScilabDouble(rpar); this.x.graphics = graphics; this.x.model = this.model; |