From f4388f63c371a1f9d4d875c16184fef8b0cee03c Mon Sep 17 00:00:00 2001 From: Pooja Soundalgekar Date: Sat, 2 Jul 2016 11:37:05 +0530 Subject: ds_INTEGRAL_m --- data_structures_correct/INTEGRAL_m.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data_structures_correct/INTEGRAL_m.js (limited to 'data_structures_correct/INTEGRAL_m.js') diff --git a/data_structures_correct/INTEGRAL_m.js b/data_structures_correct/INTEGRAL_m.js new file mode 100644 index 0000000..042d5ff --- /dev/null +++ b/data_structures_correct/INTEGRAL_m.js @@ -0,0 +1,29 @@ +function INTEGRAL_m() { + + INTEGRAL_m.prototype.define = function INTEGRAL_m() { + this.maxp = 1; + this.minp = -1; + this.rpar = []; + + var model = scicos_model(); + model.state = new ScilabDouble([0]); + model.sim = list(new ScilabString(["integral_func"]), new ScilabDouble([4])); + model.in = new ScilabDouble([1]); + model.out = new ScilabDouble([1]); + model.in2 = new ScilabDouble([1]); + model.out2 = new ScilabDouble([1]); + model.rpar = new ScilabDouble(); + model.blocktype = new ScilabString(["c"]); + model.dep_ut = new ScilabBoolean([false, true]); + + var exprs = new ScilabString([0], [0], [0], [this.maxp], [this.minp]); + + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL_m\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i); + return new BasicBlock(this.x); + } + INTEGRAL_m.prototype.details = function INTEGRAL_m() { + return this.x; + } +} + -- cgit