summaryrefslogtreecommitdiff
path: root/js/Sources/RAND_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/RAND_f.js')
-rw-r--r--js/Sources/RAND_f.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Sources/RAND_f.js b/js/Sources/RAND_f.js
index e67bbd98..6e841ab6 100644
--- a/js/Sources/RAND_f.js
+++ b/js/Sources/RAND_f.js
@@ -15,9 +15,9 @@ function RAND_f() {
this.model.ipar = new ScilabDouble([this.flag]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabBoolean([false,false]);
- this.exprs = [[string(this.flag)],[sci2exp(this.a.slice())],[sci2exp(this.b.slice())],[string(this.model.dstate[1-1])]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [[string(this.flag)],[sci2exp(this.a.slice())],[sci2exp(this.b.slice())],[string(this.model.dstate[1-1])]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
RAND_f.prototype.details = function RAND_f() {
@@ -33,12 +33,12 @@ function RAND_f() {
return options;
}
RAND_f.prototype.set = function RAND_f() {
- this.exprs = this.graphics.exprs;
- if (size(this.exprs,"*")==5) {
- this.exprs = this.exprs.slice(1-1,3);
+ var exprs = this.graphics.exprs;
+ if (size(exprs,"*")==5) {
+ var exprs = exprs.slice(1-1,3);
}
- if (size(this.exprs,"*")==3) {
- this.exprs = [[this.exprs],[string(this.model.dstate[1-1])]];
+ if (size(exprs,"*")==3) {
+ var exprs = [[exprs],[string(this.model.dstate[1-1])]];
}
while (true) {
var ok = true;
@@ -54,7 +54,7 @@ function RAND_f() {
throw "user error";
} else {
var nout = size(this.a,"*");
- this.graphics.exprs = new ScilabDouble(this.exprs);
+ this.graphics.exprs = new ScilabDouble(exprs);
this.model.out = new ScilabDouble([nout]);
this.model.ipar = new ScilabDouble([this.flag]);
this.model.rpar = new ScilabDouble([this.a.slice()],[this.b.slice()]);