diff options
author | Sunil Shetye | 2018-07-16 18:13:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch) | |
tree | 6b766b7c32effff12fa48cff99f11b9420136610 /js/Linear/TCLSS_f.js | |
parent | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff) | |
download | sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2 sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip |
move the options in the loop
Diffstat (limited to 'js/Linear/TCLSS_f.js')
-rw-r--r-- | js/Linear/TCLSS_f.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index e224fbf0..db3d2625 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -37,18 +37,18 @@ function TCLSS_f() { return options; } TCLSS_f.prototype.set = function TCLSS_f() { - this.A = parseFloat(arguments[0]["A"]) - this.B = parseFloat(arguments[0]["B"]) - this.C = parseFloat(arguments[0]["C"]) - this.D = parseFloat(arguments[0]["D"]) - this.x0 = parseFloat(arguments[0]["x0"]) - this.exprs = parseFloat(arguments[0]["exprs"]) this.exprs = this.graphics.exprs; if (size(this.exprs,"*")==7) { this.exprs = this.exprs[[1:4,7]-1]; } while (true) { - [ok,this.A,this.B,this.C,this.D,this.x0,this.exprs] = scicos_getvalue("Set continuous linear system parameters",["A matrix","B matrix","C matrix","D matrix","Initial state"],list("mat",[-1,-1],"mat",["size(%1,2)","-1"],"mat",["-1","size(%1,2)"],"mat",[-1,-1],"vec","size(%1,2)"),this.exprs); + var ok = true; + this.A = parseFloat(arguments[0]["A"]); + this.B = parseFloat(arguments[0]["B"]); + this.C = parseFloat(arguments[0]["C"]); + this.D = parseFloat(arguments[0]["D"]); + this.x0 = parseFloat(arguments[0]["x0"]); + this.exprs = parseFloat(arguments[0]["exprs"]); if (!ok) { break; } |