summaryrefslogtreecommitdiff
path: root/history/data_structures/ABS_VALUE.js
diff options
context:
space:
mode:
Diffstat (limited to 'history/data_structures/ABS_VALUE.js')
-rw-r--r--history/data_structures/ABS_VALUE.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/history/data_structures/ABS_VALUE.js b/history/data_structures/ABS_VALUE.js
new file mode 100644
index 0000000..ef569e9
--- /dev/null
+++ b/history/data_structures/ABS_VALUE.js
@@ -0,0 +1,20 @@
+function ABS_VALUE () {
+
+
+ var nu = -1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["absolute_value"]),new ScilabDouble([4]));
+ model.in1.push(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 = [string([1])];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}