summaryrefslogtreecommitdiff
path: root/data_structures_correct/AUTOMAT.js
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-06-23 17:01:16 +0530
committerGitHub2016-06-23 17:01:16 +0530
commitec57c8a08d85350084d6725998dab29c0e806b0f (patch)
tree6b466248f83bb6c97d048ee9013e90d913ff7583 /data_structures_correct/AUTOMAT.js
parent2aae4a520315c9b01228877fc6cdb0d0b9b2a3da (diff)
parentd8b0cfac9a71a9c2628c84505cf0f962f3c08f36 (diff)
downloadxcos-on-web-ec57c8a08d85350084d6725998dab29c0e806b0f.tar.gz
xcos-on-web-ec57c8a08d85350084d6725998dab29c0e806b0f.tar.bz2
xcos-on-web-ec57c8a08d85350084d6725998dab29c0e806b0f.zip
Merge pull request #63 from ASP1234/master
Implement CANIMXY3D Block
Diffstat (limited to 'data_structures_correct/AUTOMAT.js')
-rw-r--r--data_structures_correct/AUTOMAT.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/data_structures_correct/AUTOMAT.js b/data_structures_correct/AUTOMAT.js
index 931db5e..cab6287 100644
--- a/data_structures_correct/AUTOMAT.js
+++ b/data_structures_correct/AUTOMAT.js
@@ -2,26 +2,15 @@ function AUTOMAT() {
AUTOMAT.prototype.define = function AUTOMAT() {
this.NMode = 2;
-
this.Minitial = 1;
-
this.NX = 1;
-
this.X0 = [0.0];
-
- this.XP = [
- [1],
- [1]
- ];
-
+ this.XP = [[1],[1]];
this.C1 = [2];
-
this.C2 = [1];
var exprs = new ScilabString([this.NMode.toString()], [this.Minitial.toString()], [this.NX.toString()], [sci2exp(this.X0)], [sci2exp(this.XP)], [sci2exp(this.C1)], [sci2exp(this.C2)]);
-
var ipar = new ScilabDouble([this.NMode], [this.Minitial], [this.NX], ...this.XP, this.C1, this.C2);
-
var rpar = new ScilabDouble(this.X0);
var model = scicos_model();