From 0047c3bea1d86b12a08544f6f0833c63e77f6eac Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 15:19:38 +0530 Subject: support vector also --- js/Linear/DIFF_c.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/Linear/DIFF_c.js') diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js index f8d77168..057264bf 100644 --- a/js/Linear/DIFF_c.js +++ b/js/Linear/DIFF_c.js @@ -8,7 +8,7 @@ function DIFF_c() { this.model.out = new ScilabDouble([1]); this.model.state = new ScilabDouble(this.x0); this.model.blocktype = new ScilabString(["c"]); - this.model.dep_ut = [false,true]; + this.model.dep_ut = new ScilabDouble([false,true]); var exprs = [[strcat(sci2exp(this.x0[1-1]))],[strcat(sci2exp(this.x0[2-1]))]]; var gr_i = []; this.x = standard_define([2,2],this.model,exprs,gr_i); @@ -52,7 +52,7 @@ function DIFF_c() { if (!ask_again) { graphics.exprs = exprs; this.model.state = new ScilabDouble([this.x0],[this.xd0]); - this.model.out = [N]; + this.model.out = new ScilabDouble([N]); this.model.in1 = new ScilabDouble([N]); this.x.graphics = graphics; this.x.model = this.model; -- cgit