From 9b18945e2e2348db85595fb096a1e1eba04f9baf Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 9 Jul 2018 18:10:31 +0530 Subject: remove type from list --- js/Linear/DELAYV_f.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/Linear/DELAYV_f.js') 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; -- cgit