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 () |
| | ...
|
| |
| subroutine, public | initf (n) |
| | ...
|
| |
| subroutine, public | parsef (i, funcstr, var) |
| | Parse ith function string FuncStr and compile it into bytecode.
|
| |
| real(rn) function, public | evalf (i, val) |
| | ...
|
| |
| real(kind=rn) function, public | evalfd (id_fun, ipar, vals, h, err) |
| | Evaluates derivatives.
|
| |
|
| integer, public | evalerrtype |
| |
| type(tcomp), dimension(:), pointer | comp => NULL() |
| |
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 |
◆ comp
| type(tcomp), dimension(:), pointer fparser::comp => NULL() |