diff options
author | Sunil Shetye | 2018-07-09 18:10:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | 9b18945e2e2348db85595fb096a1e1eba04f9baf (patch) | |
tree | bb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Linear/DELAYV_f.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/Linear/DELAYV_f.js')
-rw-r--r-- | js/Linear/DELAYV_f.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js index 1f569d9b..882d20ee 100644 --- a/js/Linear/DELAYV_f.js +++ b/js/Linear/DELAYV_f.js @@ -6,14 +6,14 @@ function DELAYV_f() { this.zz0 = z0.slice(1-1,$-1); this.T = 1; this.model = scicos_model(); - this.model.sim = list(new ScilabString("delayv"),new ScilabDouble(1)); + this.model.sim = list(new ScilabString(["delayv"]), new ScilabDouble([1])); this.model.in1 = [[this.nin],[1]]; - this.model.out = new ScilabDouble(this.nin); - this.model.evtin = new ScilabDouble(1); + this.model.out = new ScilabDouble([this.nin]); + this.model.evtin = new ScilabDouble([1]); this.model.evtout = [[1],[1]]; - this.model.dstate = new ScilabDouble(z0); - this.model.rpar = new ScilabDouble(this.T/(size(this.zz0,"*"))); - this.model.blocktype = new ScilabString("d"); + this.model.dstate = new ScilabDouble([z0]); + this.model.rpar = new ScilabDouble([this.T/(size(this.zz0,"*"))]); + this.model.blocktype = new ScilabString(["d"]); this.model.firing = [0,-1]; this.model.dep_ut = [true,false]; exprs = [[string(this.nin)],[strcat(string(z0.slice(1-1,$-1)),";")],[string(this.T)]]; @@ -63,7 +63,7 @@ function DELAYV_f() { if (ok) { graphics.exprs = exprs; this.model.dstate = [[this.zz0.slice()],[told]]; - this.model.rpar = new ScilabDouble(this.T/(size(this.zz0,"*"))); + this.model.rpar = new ScilabDouble([this.T/(size(this.zz0,"*"))]); this.x.graphics = graphics; this.x.model = this.model; break; |