(git:eeadd9f)
Loading...
Searching...
No Matches
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 ()
 ...
 
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.
 
character(len=:) function, allocatable, public docf ()
 ...
 

Variables

integer, public evalerrtype
 
type(tcomp), dimension(:), pointer comp => NULL()
 

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 126 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 155 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 173 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 205 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 1096 of file fparser.F.

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

◆ docf()

character(len=:) function, allocatable, public fparser::docf

...

Returns
...

Definition at line 1150 of file fparser.F.

Here is the caller graph for this function:

Variable Documentation

◆ evalerrtype

integer, public fparser::evalerrtype

Definition at line 33 of file fparser.F.

◆ comp

type(tcomp), dimension(:), pointer fparser::comp => NULL()

Definition at line 118 of file fparser.F.