Input, real ( kind = 8 ) FTAB(NTAB), the function values,
FTAB(I) = F(XTAB(I)).
Input, real ( kind = 8 ) XTAB(NTAB), the abscissas at which the
function values are given. The XTAB's must be distinct
and in ascending order.
Input, integer NTAB, the number of entries in FTAB and
XTAB. NTAB must be at least 3.
Input, real ( kind = 8 ) A, the lower limit of integration. A should
be, but need not be, near one endpoint of the interval
(X(1), X(NTAB)).
Input, real ( kind = 8 ) B, the upper limit of integration. B should
be, but need not be, near one endpoint of the interval
(X(1), X(NTAB)).
Output, real ( kind = 8 ) RESULT, the approximate value of the integral.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.