diff options
Diffstat (limited to 'js/Linear')
-rw-r--r-- | js/Linear/CLSS.js | 2 | ||||
-rw-r--r-- | js/Linear/CLSS_f.js | 2 | ||||
-rw-r--r-- | js/Linear/DLSS.js | 2 | ||||
-rw-r--r-- | js/Linear/DLSS_f.js | 2 | ||||
-rw-r--r-- | js/Linear/GAINBLK.js | 2 | ||||
-rw-r--r-- | js/Linear/GAINBLK_f.js | 2 | ||||
-rw-r--r-- | js/Linear/GAIN_f.js | 2 | ||||
-rw-r--r-- | js/Linear/TCLSS.js | 4 | ||||
-rw-r--r-- | js/Linear/TCLSS_f.js | 4 |
9 files changed, 11 insertions, 11 deletions
diff --git a/js/Linear/CLSS.js b/js/Linear/CLSS.js index 531998b2..5208c088 100644 --- a/js/Linear/CLSS.js +++ b/js/Linear/CLSS.js @@ -81,7 +81,7 @@ function CLSS() { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; - if (this.D!=[]) { + if (this.D.length!=0) { if (norm(this.D,1)!=0) { var mmm = [true,true]; } else { diff --git a/js/Linear/CLSS_f.js b/js/Linear/CLSS_f.js index 2e636fd0..74e9dd5b 100644 --- a/js/Linear/CLSS_f.js +++ b/js/Linear/CLSS_f.js @@ -71,7 +71,7 @@ function CLSS_f() { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; - if (this.D!=[]) { + if (this.D.length!=0) { if (norm(this.D,1)!=0) { var mmm = [true,true]; } else { diff --git a/js/Linear/DLSS.js b/js/Linear/DLSS.js index b48aafee..e501d355 100644 --- a/js/Linear/DLSS.js +++ b/js/Linear/DLSS.js @@ -80,7 +80,7 @@ function DLSS() { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; - if (this.D!=[]) { + if (this.D.length!=0) { if (norm(this.D,1)!=0) { var mmm = [true,false]; } else { diff --git a/js/Linear/DLSS_f.js b/js/Linear/DLSS_f.js index 15da1aa5..45b81b78 100644 --- a/js/Linear/DLSS_f.js +++ b/js/Linear/DLSS_f.js @@ -70,7 +70,7 @@ function DLSS_f() { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; - if (this.D!=[]) { + if (this.D.length!=0) { if (norm(this.D,1)!=0) { var mmm = [true,false]; } else { diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js index a70acaf0..4397bb55 100644 --- a/js/Linear/GAINBLK.js +++ b/js/Linear/GAINBLK.js @@ -42,7 +42,7 @@ function GAINBLK() { if (!ok) { break; } - if (this.gain==[]) { + if (this.gain.length==0) { message("Gain must have at least one element"); throw "user error"; } else { diff --git a/js/Linear/GAINBLK_f.js b/js/Linear/GAINBLK_f.js index 5003f542..93dced8d 100644 --- a/js/Linear/GAINBLK_f.js +++ b/js/Linear/GAINBLK_f.js @@ -33,7 +33,7 @@ function GAINBLK_f() { if (!ok) { break; } - if (this.gain==[]) { + if (this.gain.length==0) { message("Gain must have at least one element"); throw "user error"; } else { diff --git a/js/Linear/GAIN_f.js b/js/Linear/GAIN_f.js index 201a47a2..c9a8aaed 100644 --- a/js/Linear/GAIN_f.js +++ b/js/Linear/GAIN_f.js @@ -33,7 +33,7 @@ function GAIN_f() { if (!ok) { break; } - if (this.gain==[]) { + if (this.gain.length==0) { message("Gain must have at least one element"); throw "user error"; } else { diff --git a/js/Linear/TCLSS.js b/js/Linear/TCLSS.js index 391f5387..73f319ae 100644 --- a/js/Linear/TCLSS.js +++ b/js/Linear/TCLSS.js @@ -73,7 +73,7 @@ function TCLSS() { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; - if (this.D!=[]) { + if (this.D.length!=0) { if (norm(this.D,1)!=0) { var mmm = [true,true]; } else { @@ -87,7 +87,7 @@ function TCLSS() { } this.model.state = new ScilabDouble(this.x0.slice()); this.model.rpar = new ScilabDouble(rpar); - if (this.D!=[]) { + if (this.D.length!=0) { this.model.sim = list(new ScilabString(["tcslti4"]), new ScilabDouble([4])); } else { this.model.sim = list(new ScilabString(["tcsltj4"]), new ScilabDouble([4])); diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index c9f91609..3003cbcd 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -73,7 +73,7 @@ function TCLSS_f() { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; - if (this.D!=[]) { + if (this.D.length!=0) { if (norm(this.D,1)!=0) { var mmm = [true,true]; } else { @@ -87,7 +87,7 @@ function TCLSS_f() { } this.model.state = new ScilabDouble(this.x0.slice()); this.model.rpar = new ScilabDouble(rpar); - if (this.D!=[]) { + if (this.D.length!=0) { this.model.sim = list(new ScilabString(["tcslti"]), new ScilabDouble([1])); } else { this.model.sim = list(new ScilabString(["tcsltj"]), new ScilabDouble([1])); |