Skip to content

Commit 29ebe9c

Browse files
committed
added a comment regarding the initial guess for gauss-legendre quadrature points
1 parent e0add1a commit 29ebe9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stdlib_quadrature_gauss.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pure module subroutine gauss_legendre_fp64 (x, w, interval)
2828
real(dp) :: leg, dleg, delta
2929

3030
do i = 0, (n+1)/2 - 1
31+
! use Gauss-Chebyshev points as an initial guess
3132
x(i+1) = -cos((2*i+1)/(2._dp*n+2._dp) * pi)
3233
do j = 0, newton_iters-1
3334
leg = legendre(n+1,x(i+1))

0 commit comments

Comments
 (0)