gol_welsch: Golub-Welsch method to find quadrature points and weights for...

View source: R/RcppExports.R

gol_welschR Documentation

Golub-Welsch method to find quadrature points and weights for Gauss-Legendre quadrature

Description

Calculates the nodes and weights for Legendre polynomials shifted to the interval (eps^2, 1).

Usage

gol_welsch(eps, qwts)

Arguments

eps

obstruction fraction 0 <= eps < 1

qwts

an input R vector with length equal to the number of quatrature points.

Details

If N is the maximum polynomial order to be evaluated qwts should be at least of length N/2 + 1. Quadratures will then be nominally exact.

Value

a vector of quadrature nodes the same length as qwts in the open interval (eps^2, 1). qwts will be overwritten with the quadrature weights.

See Also

Called by zapm() and zapm_iso().


mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.