Eqn

Equation Block - Simple arithmetic expression without nested parenthesis, e.g: var1*var2*4+(var3+eq1)/eq2+varn. Expression is evaluated with precedence: parentheses, left to right operators, and *,/ prior to +,-.

Figure: Diagram block


Figure: Dialog box


Note : user can use Javascript language to define equations, example:

if (10 < P ) {
   d = 10e3
} else {
   d = 10e5
}
h = Math.cos(Math.PI*b);
function dbm(v){ 
return 20*Math.log(Math.abs(v) + Number.EPSILON)/Math.LN10;
}
g = dbm(b);
// nombre entier aléatoire entre _petit et _grand (inclus)
function alea(_petit, _grand){  
   return _petit + Math.floor(Math.random()*(_grand - _petit + 1));
}
a = alea(1,3);

Semicolons are not needed in Javascript but save them reformat lines without semicolon ...