summaryrefslogtreecommitdiff
path: root/js/NonLinear/EXPBLK_m.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/NonLinear/EXPBLK_m.js')
-rw-r--r--js/NonLinear/EXPBLK_m.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/NonLinear/EXPBLK_m.js b/js/NonLinear/EXPBLK_m.js
index f10f3ad9..72cd885a 100644
--- a/js/NonLinear/EXPBLK_m.js
+++ b/js/NonLinear/EXPBLK_m.js
@@ -30,8 +30,8 @@ function EXPBLK_m() {
EXPBLK_m.prototype.set = function EXPBLK_m() {
this.a = parseFloat(arguments[0]["a"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
if (size(exprs,"*")==2) {
var exprs = exprs[2-1];
@@ -44,9 +44,9 @@ function EXPBLK_m() {
if (or(this.a<=0)) {
message("a^u : a must be positive");
} else {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.rpar = new ScilabDouble([this.a]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}