diff options
author | Sunil Shetye | 2018-07-11 15:19:38 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-11 15:21:08 +0530 |
commit | 0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch) | |
tree | 36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/Linear/INTEGRAL.js | |
parent | 079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff) | |
download | sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2 sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip |
support vector also
Diffstat (limited to 'js/Linear/INTEGRAL.js')
-rw-r--r-- | js/Linear/INTEGRAL.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Linear/INTEGRAL.js b/js/Linear/INTEGRAL.js index c70354a8..9fc1fc16 100644 --- a/js/Linear/INTEGRAL.js +++ b/js/Linear/INTEGRAL.js @@ -9,9 +9,9 @@ function INTEGRAL() { 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.rpar = rpar; + this.model.rpar = new ScilabDouble(rpar); this.model.blocktype = new ScilabString(["c"]); - this.model.dep_ut = [false,true]; + this.model.dep_ut = new ScilabDouble([false,true]); var exprs = string([[0],[0],[0],[this.maxp],[minp]]); var gr_i = []; this.x = standard_define([2,2],this.model,exprs,gr_i); @@ -80,8 +80,8 @@ function INTEGRAL() { this.model.nmode = new ScilabDouble([0]); } if (ok) { - this.model.rpar = rpar; - this.model.state = this.x0; + this.model.rpar = new ScilabDouble(rpar); + this.model.state = new ScilabDouble(this.x0); var tmpvar0 = check_io(this.model,graphics,size(this.x0,1)*[[1],[ones(this.reinit,1)]],size(this.x0,1),ones(this.reinit,1),[]) this.model = tmpvar0[0] var graphics = tmpvar0[1] |