diff options
Diffstat (limited to 'js/NonLinear/SAT_f.js')
-rw-r--r-- | js/NonLinear/SAT_f.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/NonLinear/SAT_f.js b/js/NonLinear/SAT_f.js index 6de131a1..40e3cf08 100644 --- a/js/NonLinear/SAT_f.js +++ b/js/NonLinear/SAT_f.js @@ -41,8 +41,10 @@ function SAT_f() { } if (this.maxp<=0) { message("Max must be strictly positive"); + throw "user error"; } else if (this.pente<=0) { message("Slope must be strictly positive"); + throw "user error"; } else { var rpar = [[this.minp/this.pente],[this.maxp/this.pente],[this.pente]]; this.model.rpar = new ScilabDouble(rpar); |