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/NonLinear/ABS_VALUE.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/NonLinear/ABS_VALUE.js')
-rw-r--r-- | js/NonLinear/ABS_VALUE.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/NonLinear/ABS_VALUE.js b/js/NonLinear/ABS_VALUE.js index a82d06b9..116d1ad1 100644 --- a/js/NonLinear/ABS_VALUE.js +++ b/js/NonLinear/ABS_VALUE.js @@ -3,12 +3,12 @@ function ABS_VALUE() { ABS_VALUE.prototype.define = function ABS_VALUE() { nu = -1; this.model = scicos_model(); - this.model.sim = list(new ScilabString("absolute_value"),new ScilabDouble(4)); - this.model.in1 = new ScilabDouble(nu); - this.model.out = new ScilabDouble(nu); - this.model.nzcross = new ScilabDouble(nu); - this.model.nmode = new ScilabDouble(nu); - this.model.blocktype = new ScilabString("c"); + this.model.sim = list(new ScilabString(["absolute_value"]), new ScilabDouble([4])); + this.model.in1 = new ScilabDouble([nu]); + this.model.out = new ScilabDouble([nu]); + this.model.nzcross = new ScilabDouble([nu]); + this.model.nmode = new ScilabDouble([nu]); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; exprs = [string([1])]; gr_i = []; @@ -38,11 +38,11 @@ function ABS_VALUE() { graphics.exprs = exprs; if (ok) { if (this.zcr!=0) { - this.model.nmode = new ScilabDouble(-1); - this.model.nzcross = new ScilabDouble(-1); + this.model.nmode = new ScilabDouble([-1]); + this.model.nzcross = new ScilabDouble([-1]); } else { - this.model.nmode = new ScilabDouble(0); - this.model.nzcross = new ScilabDouble(0); + this.model.nmode = new ScilabDouble([0]); + this.model.nzcross = new ScilabDouble([0]); } this.x.graphics = graphics; this.x.model = this.model; |