NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
|
Routine to perform the integration of a weighted function by 15-points Gauss-Kronrod rule. More...
Routine to perform the integration of a weighted function by 15-points Gauss-Kronrod rule.
This routine is non-automatic and approximates the integral of the function and its absolute value
f | (in) The function to integrate |
w | (in) The (real) weight function W(x) |
p | (in, real, array) extra arguments for the weight function |
kp | (in, integer) flag indicating the type of weight function |
a | (in, real) lower limit of integration |
b | (in, real) upper limit of integration |
args | (in, real, array, optional) extra arguments (if needed) to be passed to the function f |
result | (out, same kind as f ) Approximation to integral I = integ(f(x), a, b) , i.e: |
abserr | (out, real) Estimation of error |
resabs | (out, same kind as f ) Approximation to integral of absolute value of f |
resacs | (out, real) Approximation to integral |
The routine returns the result of applying the m-point Kronrod (result I) rule obtained by optimal addition of abscissae to the n-point Gauss rule (result J), where .
The absolute error is evaluated as abserr
=|I-J|.