functionqawc

QAWC integration routine

Extends from Modelica.Icons.Function (Icon for functions).

Information

Function for accessing the external GSL QAWC integration routine, which calculates the Cauchy principal value of a function with a singular point at x=c.

Keep in mind that the 'integrand' must be "created" beforehand: see the 'CreateIntegrand' model and the 'integrand_setup' function. Note that here f is to be defined without the singular 1/(x-c) part: 

Inputs

TypeNameDefaultDescription
Integern_par
Real[n_par]par
Reala
Realb
Realc
Realrel_err
Integerlimit

Outputs

TypeNameDefaultDescription
Realy
Realerr