stdlib_quadrature Module

(Specification)



Contents


Interfaces

public interface gauss_legendre

Computes Gauss-Legendre quadrature nodes and weights.

  • private pure module subroutine gauss_legendre_fp64(x, w, interval)

    Arguments

    TypeIntentOptionalAttributesName
    real(kind=dp), intent(out) :: x(:)
    real(kind=dp), intent(out) :: w(:)
    real(kind=dp), intent(in), optional :: interval(2)

public interface gauss_legendre_lobatto

Computes Gauss-Legendre-Lobatto quadrature nodes and weights.

  • private pure module subroutine gauss_legendre_lobatto_fp64(x, w, interval)

    Arguments

    TypeIntentOptionalAttributesName
    real(kind=dp), intent(out) :: x(:)
    real(kind=dp), intent(out) :: w(:)
    real(kind=dp), intent(in), optional :: interval(2)

public interface simps

Integrates sampled values using Simpson's rule (Specification)

  • 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)

public interface simps_weights

Integrates sampled values using trapezoidal rule weights for given abscissas (Specification)

  • private pure recursive module function simps_weights_dp(x, even) result(w)

    Arguments

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

    Return Value real(kind=dp),dimension(size(x))

  • private pure recursive module function simps_weights_sp(x, even) result(w)

    Arguments

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

    Return Value real(kind=sp),dimension(size(x))

public interface trapz

Integrates sampled values using trapezoidal rule (Specification)

  • 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)

public interface trapz_weights

Integrates sampled values using trapezoidal rule weights for given abscissas (Specification)

  • private pure module function trapz_weights_dp(x) result(w)

    Arguments

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

    Return Value real(kind=dp),dimension(size(x))

  • private pure module function trapz_weights_sp(x) result(w)

    Arguments

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

    Return Value real(kind=sp),dimension(size(x))