summaryrefslogtreecommitdiff
path: root/js/NonLinear/ABS_VALUE.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/NonLinear/ABS_VALUE.js')
-rw-r--r--js/NonLinear/ABS_VALUE.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/NonLinear/ABS_VALUE.js b/js/NonLinear/ABS_VALUE.js
index a82d06b9..116d1ad1 100644
--- a/js/NonLinear/ABS_VALUE.js
+++ b/js/NonLinear/ABS_VALUE.js
@@ -3,12 +3,12 @@ function ABS_VALUE() {
ABS_VALUE.prototype.define = function ABS_VALUE() {
nu = -1;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("absolute_value"),new ScilabDouble(4));
- this.model.in1 = new ScilabDouble(nu);
- this.model.out = new ScilabDouble(nu);
- this.model.nzcross = new ScilabDouble(nu);
- this.model.nmode = new ScilabDouble(nu);
- this.model.blocktype = new ScilabString("c");
+ this.model.sim = list(new ScilabString(["absolute_value"]), new ScilabDouble([4]));
+ this.model.in1 = new ScilabDouble([nu]);
+ this.model.out = new ScilabDouble([nu]);
+ this.model.nzcross = new ScilabDouble([nu]);
+ this.model.nmode = new ScilabDouble([nu]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = [string([1])];
gr_i = [];
@@ -38,11 +38,11 @@ function ABS_VALUE() {
graphics.exprs = exprs;
if (ok) {
if (this.zcr!=0) {
- this.model.nmode = new ScilabDouble(-1);
- this.model.nzcross = new ScilabDouble(-1);
+ this.model.nmode = new ScilabDouble([-1]);
+ this.model.nzcross = new ScilabDouble([-1]);
} else {
- this.model.nmode = new ScilabDouble(0);
- this.model.nzcross = new ScilabDouble(0);
+ this.model.nmode = new ScilabDouble([0]);
+ this.model.nzcross = new ScilabDouble([0]);
}
this.x.graphics = graphics;
this.x.model = this.model;