trapz Interface

public interface trapz

Integrates sampled values using trapezoidal rule (Specification)


Contents


Functions

private pure module function trapz_dx_dp(y, dx) result(integral)

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(in), dimension(:):: y
real(kind=dp), intent(in) :: dx

Return Value real(kind=dp)

private pure module function trapz_dx_sp(y, dx) result(integral)

Arguments

TypeIntentOptionalAttributesName
real(kind=sp), intent(in), dimension(:):: y
real(kind=sp), intent(in) :: dx

Return Value real(kind=sp)

private module function trapz_x_dp(y, x) result(integral)

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(in), dimension(:):: y
real(kind=dp), intent(in), dimension(:):: x

Return Value real(kind=dp)

private module function trapz_x_sp(y, x) result(integral)

Arguments

TypeIntentOptionalAttributesName
real(kind=sp), intent(in), dimension(:):: y
real(kind=sp), intent(in), dimension(:):: x

Return Value real(kind=sp)