integrate_array_re Function

public pure function integrate_array_re(x, y) result(r)

This function calculates the integral of an array y with respect to x using a trapezoid approximation. Note that the mesh spacing of x does not necessarily have to be uniform.

Arguments

Type IntentOptional AttributesName
real(kind=wp), intent(in), dimension(:):: x

Variable x

real(kind=wp), intent(in), dimension(size(x)):: y

Function y(x)

Return Value real(kind=wp)

Integral ∫y(x)·dx


Contents

None