summaryrefslogtreecommitdiff
path: root/js/Linear/CLSS_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/CLSS_f.js')
-rw-r--r--js/Linear/CLSS_f.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/CLSS_f.js b/js/Linear/CLSS_f.js
index 74e9dd5b..9ba6e096 100644
--- a/js/Linear/CLSS_f.js
+++ b/js/Linear/CLSS_f.js
@@ -16,9 +16,9 @@ function CLSS_f() {
this.model.rpar = new ScilabDouble([this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([false,true]);
- this.exprs = [[strcat(sci2exp(this.A))],[strcat(sci2exp(this.B))],[strcat(sci2exp(this.C))],[strcat(sci2exp(this.D))],[strcat(sci2exp(this.x0))]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLSS_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [[strcat(sci2exp(this.A))],[strcat(sci2exp(this.B))],[strcat(sci2exp(this.C))],[strcat(sci2exp(this.D))],[strcat(sci2exp(this.x0))]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLSS_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
CLSS_f.prototype.details = function CLSS_f() {
@@ -35,9 +35,9 @@ function CLSS_f() {
return options;
}
CLSS_f.prototype.set = function CLSS_f() {
- this.exprs = this.graphics.exprs;
- if (size(this.exprs,"*")==7) {
- this.exprs = this.exprs[[1:4,7]-1];
+ var exprs = this.graphics.exprs;
+ if (size(exprs,"*")==7) {
+ var exprs = exprs[[1:4,7]-1];
}
while (true) {
var ok = true;
@@ -69,7 +69,7 @@ function CLSS_f() {
this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]];
if (this.D.length!=0) {
if (norm(this.D,1)!=0) {