NEW Sharing area
User documentation
Admin documentation
Development resources
Download
Private area

!(…)
... !(x1), !(x2), !x3, !x4, !x5, !x6, !x7, !x8 ...string is interpreted as 8 variables: x1, x2, x3, x4, x5, x6, x7, x8 1)
@[…]
... @[cos(!x1+!x2)] ...will not parse new variables, but automatically replce the string ”@[cos(!x1+!x2)]” by cos(x1+x2) numerical value, where x1 and x2 are variables.
#@: …
... #@: f <- function(x) {if (x>1) {x+1} else {cos(x)} } ... @[f(!x1)] ...will add the new function “f” in the Math. engine. It means that you can call anywhere in the dataset the function “f”. Note that the # character is the “line comment” character of the code.
#@? f(0.5) == 1.5
... #@: f <- function(x) {if (x>1) {x+1} else {cos(x)} } #@? f(0.5) == cos(0.5) ... @[f(!x1)] ...will check that the test expression is true, instead the project will not launch. This feature is especially useful when checking that functions are well written.
Extended parameterizing syntax examples
!(x1~0.123)
means that default value for “x1” variable is “0.123”!(x1~{0.1,0.2,0.3})
will setup x1 values to 0.1,0.2 and 0.3!(x1~:g)
will setup x1 as belonging to the “g” group of variables@[cos(!x1+!x2)|0.000E00]
means that when evaluating formula, only three decimal characters will be kept, and scientific formt will be used: “0.456E-01” for instance. More information on this formt pattern: see Java DecimalFormat doc#@: f ← function(x) {x + !x1}
is a possible syntax. The variable x1 is like a “global” variable for f (in fact it is roughly replced before any call to math. engine).Intermediate variables
... #@: f <- function(x) {if (x>1) {x+1} else {cos(x)} } #@: a <- 3.14 ... @[f(!x1)+a] ..., then these “intermediate” variables are presented in a third table between input and output ones.