Aproximates the integral of the function given a set of points: using the trapezoidal rule. The points do not need to be linearly spaced along the integration domain.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | x(0:) |
Array containing the abscissas of the points |
||
| real, | intent(in) | :: | y(0:) |
Array containing the ordinates of the points |
Numerical aproximation to the integral