Calculates the integral of an array y wrt. x using the trapezoid method. The mesh spacing does not necessarily have to be uniform.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x |
Variable x |
|
real(kind=wp), | intent(in), | dimension(size(x)) | :: | y |
Function y(x) |
Integral ∫y(x)·dx