trapz Interface

public interface trapz

Integrates sampled values using trapezoidal rule (Specification)


Functions

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

Arguments

Type IntentOptional Attributes Name
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

Type IntentOptional Attributes Name
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

Type IntentOptional Attributes Name
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

Type IntentOptional Attributes Name
real(kind=sp), intent(in), dimension(:) :: y
real(kind=sp), intent(in), dimension(:) :: x

Return Value real(kind=sp)