summaryrefslogtreecommitdiff
path: root/data_structures/ABS_VALUE.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/ABS_VALUE.js')
-rw-r--r--data_structures/ABS_VALUE.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/data_structures/ABS_VALUE.js b/data_structures/ABS_VALUE.js
new file mode 100644
index 0000000..65c6df1
--- /dev/null
+++ b/data_structures/ABS_VALUE.js
@@ -0,0 +1,19 @@
+function ABS_VALUE () {
+
+
+ var nu = -1;
+
+ var model = scicos_model();
+ model.sim=list("absolute_value",4);
+ model.in=new ScilabDouble([nu]);
+ model.out=new ScilabDouble([nu]);
+ model.nzcross=new ScilabDouble([nu]);
+ model.nmode=new ScilabDouble([nu]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[1].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}