grid_tools 1.14.0
Loading...
Searching...
No Matches
pesg::gaulegh Interface Reference

Public Member Functions

subroutine gaulegh (m, x, w)
 This Gauss-Legendre quadrature integrates exactly any even polynomial up to degree m*4-2 in the half-interval [0,1].
 

Detailed Description

Definition at line 58 of file pesg.f90.

Constructor & Destructor Documentation

◆ gaulegh()

subroutine pesg::gaulegh::gaulegh ( integer(spi), intent(in) m,
real(dp), dimension(m), intent(out) x,
real(dp), dimension(m), intent(out) w )

This Gauss-Legendre quadrature integrates exactly any even polynomial up to degree m*4-2 in the half-interval [0,1].

This code is liberally adapted from the algorithm given in Press et al., Numerical Recipes.

Parameters
mnumber of nodes in half-interval
xnodes and weights
wnodes and weights
Author
R. J. Purser

Definition at line 1851 of file pesg.f90.


The documentation for this interface was generated from the following file: