diff options
Diffstat (limited to 'data_structures/SQRT.js')
-rw-r--r-- | data_structures/SQRT.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/SQRT.js b/data_structures/SQRT.js index 535bcb2..9988080 100644 --- a/data_structures/SQRT.js +++ b/data_structures/SQRT.js @@ -2,8 +2,8 @@ function SQRT () { var model = scicos_model(); - model.sim=list("mat_sqrt",4); - model.in = new ScilabDouble([-1]); + model.sim=list(new ScilabString(["mat_sqrt"]),new ScilabDouble([4])); + model.in1 = new ScilabDouble([-1]); model.in2 = new ScilabDouble([-2]); model.intyp = new ScilabDouble([1]); model.outtyp = new ScilabDouble([1]); @@ -15,4 +15,5 @@ function SQRT () { var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); + return new BasicBlock(this.x) } |