diff options
Diffstat (limited to 'data_structures/SUMMATION.js')
-rw-r--r-- | data_structures/SUMMATION.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/SUMMATION.js b/data_structures/SUMMATION.js index 5ce2fc4..4c7fe1b 100644 --- a/data_structures/SUMMATION.js +++ b/data_structures/SUMMATION.js @@ -4,8 +4,8 @@ function SUMMATION () { var sgn = [[1],[-1]]; var model = scicos_model(); - model.sim=list("summation",4); - model.in = new ScilabDouble([-1],[-1]); + model.sim=list(new ScilabString(["summation"]),new ScilabDouble([4])); + model.in1 = new ScilabDouble([-1],[-1]); model.out = new ScilabDouble([-1]); model.in2 = new ScilabDouble([-2],[-2]); model.out2 = new ScilabDouble([-2]); @@ -17,4 +17,5 @@ function SUMMATION () { var gr_i = []; this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i); + return new Summation(this.x) } |