Public interface for various integration routines.
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
Complex version of integrate_array_re.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x |
Variable x |
|
complex(kind=wp), | intent(in), | dimension(size(x)) | :: | y |
Function y(x) |
Integral ∫y(x)·dx
Constructs a piecewise hermitian cubic interpolation of an array y(x) from discrete numerical data, and then integrates the interpolation in the range (a, b). The mesh spacing does not 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) |
|
real(kind=wp), | intent(in) | :: | a |
Left endpoint |
||
real(kind=wp), | intent(in) | :: | b |
Right endpoint |
Integral ∫y(x)·dx
Complex version of integrate_range_re.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x |
Variable x |
|
complex(kind=wp), | intent(in), | dimension(size(x)) | :: | y |
Function y(x) |
|
real(kind=wp), | intent(in) | :: | a |
Left endpoint |
||
real(kind=wp), | intent(in) | :: | b |
Right endpoint |
Integral ∫y(x)·dx