summaryrefslogtreecommitdiff
path: root/js/NonLinear/EXPBLK_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/NonLinear/EXPBLK_f.js')
-rw-r--r--js/NonLinear/EXPBLK_f.js54
1 files changed, 27 insertions, 27 deletions
diff --git a/js/NonLinear/EXPBLK_f.js b/js/NonLinear/EXPBLK_f.js
index 67333791..e3b39f45 100644
--- a/js/NonLinear/EXPBLK_f.js
+++ b/js/NonLinear/EXPBLK_f.js
@@ -1,43 +1,43 @@
/* autogenerated from "macros/NonLinear/EXPBLK_f.sci" */
function EXPBLK_f() {
EXPBLK_f.prototype.define = function EXPBLK_f() {
-in1=1;
-a=math.E;
-model=scicos_model();
-model.sim="expblk";
-model.in1=-1;
-model.out=-1;
-model.rpar=a;
-model.blocktype="c";
-model.dep_ut=[true,false];
-exprs=["%e"];
-gr_i=[];
-x=standard_define([2,2],model,exprs,gr_i);
+ in1 = 1;
+ a = math.E;
+ model = scicos_model();
+ model.sim = "expblk";
+ model.in1 = -1;
+ model.out = -1;
+ model.rpar = a;
+ model.blocktype = "c";
+ model.dep_ut = [true,false];
+ exprs = ["%e"];
+ gr_i = [];
+ x = standard_define([2,2],model,exprs,gr_i);
}
EXPBLK_f.prototype.details = function EXPBLK_f() {
}
EXPBLK_f.prototype.get = function EXPBLK_f() {
}
EXPBLK_f.prototype.set = function EXPBLK_f() {
-x=arg1;
-graphics=arg1.graphics;
-exprs=graphics.exprs;
-model=arg1.model;
-if (size(exprs,"*")==2) {
-exprs=exprs[2-1];
+ x = arg1;
+ graphics = arg1.graphics;
+ exprs = graphics.exprs;
+ model = arg1.model;
+ if (size(exprs,"*")==2) {
+ exprs = exprs[2-1];
}
-while (true) {
-[ok,a,exprs]=scicos_getvalue("Set a^u block parameters","a (>0)",list("vec",1),exprs);
-if (!ok) {
+ while (true) {
+ [ok,a,exprs] = scicos_getvalue("Set a^u block parameters","a (>0)",list("vec",1),exprs);
+ if (!ok) {
break;
}
-if (or(a<=0)) {
+ if (or(a<=0)) {
message("a^u : a must be positive");
-} else {
-graphics.exprs=exprs;
-model.rpar=a;
-x.graphics=graphics;
-x.model=model;
+ } else {
+ graphics.exprs = exprs;
+ model.rpar = a;
+ x.graphics = graphics;
+ x.model = model;
break;
}
}