diff options
Diffstat (limited to 'js/NonLinear/INTRP2BLK_f.js')
-rw-r--r-- | js/NonLinear/INTRP2BLK_f.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/NonLinear/INTRP2BLK_f.js b/js/NonLinear/INTRP2BLK_f.js index 54bcb917..c192893c 100644 --- a/js/NonLinear/INTRP2BLK_f.js +++ b/js/NonLinear/INTRP2BLK_f.js @@ -40,8 +40,10 @@ function INTRP2BLK_f() { } if (size(this.a,"*")!=size(this.c,"c")||size(this.b,"*")!=size(this.c,"r")) { message("incompatible dimension"); + throw "user error"; } else if (min(this.a.slice(2-1,$)-this.a.slice(1-1,$-1))<=0||min(this.b.slice(2-1,$)-this.b.slice(1-1,$-1))<=0) { message("X and Y must be strictly increasing"); + throw "user error"; } else { if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); |