This public domain function parser module is intended for applications where a set of mathematical expressions is specified at runtime and is then evaluated for a large number of variable values. This is done by compiling the set of function strings into byte code, which is interpreted very efficiently for the various variable values.
More...
|
subroutine, public | finalizef () |
| ... More...
|
|
subroutine, public | initf (n) |
| ... More...
|
|
subroutine, public | parsef (i, FuncStr, Var) |
| Parse ith function string FuncStr and compile it into bytecode. More...
|
|
real(rn) function, public | evalf (i, Val) |
| ... More...
|
|
real(kind=rn) function, public | evalfd (id_fun, ipar, vals, h, err) |
| Evaluates derivatives. More...
|
|
This public domain function parser module is intended for applications where a set of mathematical expressions is specified at runtime and is then evaluated for a large number of variable values. This is done by compiling the set of function strings into byte code, which is interpreted very efficiently for the various variable values.
- Author
- Roland Schmehl Rolan.nosp@m.d.Sc.nosp@m.hmehl.nosp@m.@mac.nosp@m.h.uni.nosp@m.-kar.nosp@m.lsruh.nosp@m.e.de
◆ finalizef()
subroutine, public fparser::finalizef |
◆ initf()
subroutine, public fparser::initf |
( |
integer, intent(in) |
n | ) |
|
◆ parsef()
subroutine, public fparser::parsef |
( |
integer, intent(in) |
i, |
|
|
character(len=*), intent(in) |
FuncStr, |
|
|
character(len=*), dimension(:), intent(in) |
Var |
|
) |
| |
Parse ith function string FuncStr and compile it into bytecode.
- Parameters
-
i | Function identifier |
FuncStr | Function string |
Var | Array with variable names |
Definition at line 147 of file fparser.F.
◆ evalf()
real(rn) function, public fparser::evalf |
( |
integer, intent(in) |
i, |
|
|
real(rn), dimension(:), intent(in) |
Val |
|
) |
| |
...
- Parameters
-
- Returns
- ...
Definition at line 179 of file fparser.F.
◆ evalfd()
real(kind=rn) function, public fparser::evalfd |
( |
integer, intent(in) |
id_fun, |
|
|
integer, intent(in) |
ipar, |
|
|
real(kind=rn), dimension(:), intent(inout) |
vals, |
|
|
real(kind=rn), intent(in) |
h, |
|
|
real(kind=rn), intent(out) |
err |
|
) |
| |
Evaluates derivatives.
- Parameters
-
id_fun | ... |
ipar | ... |
vals | ... |
h | ... |
err | ... |
- Returns
- ...
- Author
- Main algorithm from Numerical Recipes Ridders, C.J.F. 1982 - Advances in Engineering Software, Vol.4, no. 2, pp. 75-76
Definition at line 975 of file fparser.F.
◆ evalerrtype
integer, public fparser::evalerrtype |