simps Interface

public interface simps

Integrates sampled values using Simpson's rule (Specification)


Contents


Functions

private pure recursive module function simps_dx_dp(y, dx, even) result(integral)

Arguments

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

Return Value real(kind=dp)

private pure recursive module function simps_dx_sp(y, dx, even) result(integral)

Arguments

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

Return Value real(kind=sp)

private recursive module function simps_x_dp(y, x, even) result(integral)

Arguments

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

Return Value real(kind=dp)

private recursive module function simps_x_sp(y, x, even) result(integral)

Arguments

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

Return Value real(kind=sp)