summaryrefslogtreecommitdiff
path: root/js/MatrixOp/ROOTCOEF.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/MatrixOp/ROOTCOEF.js')
-rw-r--r--js/MatrixOp/ROOTCOEF.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/MatrixOp/ROOTCOEF.js b/js/MatrixOp/ROOTCOEF.js
index 99ab2917..de51409f 100644
--- a/js/MatrixOp/ROOTCOEF.js
+++ b/js/MatrixOp/ROOTCOEF.js
@@ -21,8 +21,8 @@ function ROOTCOEF() {
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([true,false]);
var label = [[sci2exp(1)],[sci2exp(1)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ROOTCOEF\",sz(1),sz(2));"]);
- this.x = standard_define([3,2],this.model,label,gr_i);
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ROOTCOEF\",sz(1),sz(2));"]);
+ this.x = standard_define([3,2],this.model,label,this.gr_i);
return new BasicBlock(this.x);
}
ROOTCOEF.prototype.details = function ROOTCOEF() {
@@ -38,6 +38,7 @@ function ROOTCOEF() {
ROOTCOEF.prototype.set = function ROOTCOEF() {
this.typ = inverse(arguments[0]["typ"])
this.inp = arguments[0]["inp"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
var label = this.graphics.exprs;
@@ -46,7 +47,7 @@ function ROOTCOEF() {
label[9-1] = [];
}
while (true) {
- [ok,this.typ,this.inp,exprs] = scicos_getvalue("Set ROOTCOEF Block",["Datatype(1=real double 2=Complex)","input row size"],list("vec",1,"vec",1),label);
+ [ok,this.typ,this.inp,this.exprs] = scicos_getvalue("Set ROOTCOEF Block",["Datatype(1=real double 2=Complex)","input row size"],list("vec",1,"vec",1),label);
if (!ok) {
break;
}
@@ -66,7 +67,7 @@ function ROOTCOEF() {
var out = [this.inp+1,this.model.out2];
var funtyp = 4;
if (ok) {
- var label = exprs;
+ var label = this.exprs;
var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),[],[]);
this.model = tmpvar0[0];
this.graphics = tmpvar0[1];