51 integer,
intent(in) :: npts
52 real(dp),
intent(in) :: alpha, beta
53 real(dp),
intent(out) :: x(npts), wts(npts)
54 character(len=:),
allocatable,
intent(in) :: method
57 error stop
"Number of points must be positive"
60 if (alpha <= -1.0_dp)
then
61 error stop
"alpha must be greater than -1"
64 if (beta <= -1.0_dp)
then
66 error stop
"beta must be greater than -1"
69 select case (trim(method))
77 print*,
"Error: Unknown method specified:", method
78 print*,
"Supported methods: 'rec', 'gw', 'algo665'"
Overall driver for Gauss-Jacobi quadrature.
subroutine gauss_jacobi(npts, alpha, beta, x, wts, method)
Compute the Gauss-Jacobi quadrature nodes and weights.
This module provides routines for numerical integration using Gauss-Jacobi quadrature.
subroutine gauss_jacobi_algo665(npts, alpha, beta, x, wts)
Computes the zeros and weights for Gauss-Jacobi quadrature.
Module for computing Gauss-Jacobi quadrature nodes and weights using the Golub-Welsch (GW) method.
subroutine gauss_jacobi_gw(npts, alpha, beta, x, wts)
Computes the zeros and weights for Gauss-Jacobi quadrature.
This is derived from the recurrence relations in chebfun.
subroutine gauss_jacobi_rec(npts, alpha, beta, x, wts)
Module for defining types and precision levels for Gauss-Jacobi Polynomial (GJP) calculations.
integer, parameter, public dp
Define various kinds for real numbers.