in C-syntax: "par[0]*(1-exp(-par[1]*x))*exp(-par[2]*x)"
Note the possibility to place parameters (always with 'par'
and always starting with index 0). The values of these can then be
set during the larger model runtime (see the integration
blocks).
Wherever possible, Modelica.Utilities routines are used to
handle file / system commands. The current exception is the use of
'gcc' to compile the libgsl_integration_MI.so /
libgsl_integration_MI.dll library. This is standard on any Linux
system and is available for any Windows system via 'mingw'.
Alternatively, one could edit integrand.c directly and then
compile "by hand" in a command window:
gcc -fPIC -c integrand.c integration_mi.c
gcc -shared integration.o integration_mi.o -o
libgsl_integration_MI.so [.dll for windows]