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/INTEGRAL_m.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/INTEGRAL_m.js')
-rw-r--r-- | js/Linear/INTEGRAL_m.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/js/Linear/INTEGRAL_m.js b/js/Linear/INTEGRAL_m.js index 65423493..a0fbcd6d 100644 --- a/js/Linear/INTEGRAL_m.js +++ b/js/Linear/INTEGRAL_m.js @@ -5,14 +5,14 @@ function INTEGRAL_m() { minp = -1; rpar = []; this.model = scicos_model(); - this.model.state = new ScilabDouble(0); - this.model.sim = list(new ScilabString("integral_func"),new ScilabDouble(4)); - this.model.in1 = new ScilabDouble(1); - this.model.out = new ScilabDouble(1); - this.model.in2 = new ScilabDouble(1); - this.model.out2 = new ScilabDouble(1); + this.model.state = new ScilabDouble([0]); + this.model.sim = list(new ScilabString(["integral_func"]), new ScilabDouble([4])); + this.model.in1 = new ScilabDouble([1]); + this.model.out = new ScilabDouble([1]); + this.model.in2 = new ScilabDouble([1]); + this.model.out2 = new ScilabDouble([1]); this.model.rpar = rpar; - this.model.blocktype = new ScilabString("c"); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [false,true]; exprs = string([[0],[0],[0],[this.maxp],[minp]]); gr_i = []; @@ -75,8 +75,8 @@ function INTEGRAL_m() { ok = false; } else { rpar = [[real(this.maxp.slice())],[real(this.lowp.slice())]]; - this.model.nzcross = new ScilabDouble(size(this.x0,"*")); - this.model.nmode = new ScilabDouble(size(this.x0,"*")); + this.model.nzcross = new ScilabDouble([size(this.x0,"*")]); + this.model.nmode = new ScilabDouble([size(this.x0,"*")]); } } else if ((Datatype==2)) { if (size(this.maxp,"*")==1) { @@ -96,25 +96,25 @@ function INTEGRAL_m() { ok = false; } else { rpar = [[real(this.maxp.slice())],[real(this.lowp.slice())],[imag(this.maxp.slice())],[imag(this.lowp.slice())]]; - this.model.nzcross = new ScilabDouble(2*size(this.x0,"*")); - this.model.nmode = new ScilabDouble(2*size(this.x0,"*")); + this.model.nzcross = new ScilabDouble([2*size(this.x0,"*")]); + this.model.nmode = new ScilabDouble([2*size(this.x0,"*")]); } } } else { rpar = []; - this.model.nzcross = new ScilabDouble(0); - this.model.nmode = new ScilabDouble(0); + this.model.nzcross = new ScilabDouble([0]); + this.model.nmode = new ScilabDouble([0]); } if (ok) { this.model.rpar = rpar; if ((Datatype==1)) { - this.model.state = new ScilabDouble(real(this.x0.slice())); - this.model.sim = list(new ScilabString("integral_func"),new ScilabDouble(4)); + this.model.state = new ScilabDouble([real(this.x0.slice())]); + this.model.sim = list(new ScilabString(["integral_func"]), new ScilabDouble([4])); it = [[1],[ones(this.reinit,1)]]; ot = 1; } else if ((Datatype==2)) { this.model.state = [[real(this.x0.slice())],[imag(this.x0.slice())]]; - this.model.sim = list(new ScilabString("integralz_func"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["integralz_func"]), new ScilabDouble([4])); it = [[2],[2*ones(this.reinit,1)]]; ot = 2; } else { |