(git:6a2e663)
fparser Module Reference

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...

Functions/Subroutines

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...
 

Variables

integer, public evalerrtype
 

Detailed Description

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

Function/Subroutine Documentation

◆ finalizef()

subroutine, public fparser::finalizef

...

Definition at line 100 of file fparser.F.

Here is the caller graph for this function:

◆ initf()

subroutine, public fparser::initf ( integer, intent(in)  n)

...

Parameters
n...

Definition at line 129 of file fparser.F.

Here is the caller graph for this function:

◆ 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
iFunction identifier
FuncStrFunction string
VarArray with variable names

Definition at line 147 of file fparser.F.

Here is the caller graph for this function:

◆ evalf()

real(rn) function, public fparser::evalf ( integer, intent(in)  i,
real(rn), dimension(:), intent(in)  Val 
)

...

Parameters
i...
Val...
Returns
...

Definition at line 179 of file fparser.F.

Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ evalerrtype

integer, public fparser::evalerrtype

Definition at line 32 of file fparser.F.