legendre.weight: Weight function for the Legendre polynomial

View source: R/legendre.weight.R

legendre.weightR Documentation

Weight function for the Legendre polynomial

Description

This function returns the value of the weight function for the order k Legendre polynomial, P_k ≤ft( x \right).

Usage

legendre.weight(x)

Arguments

x

the function argument which can be a vector

Details

The function takes on non-zero values in the interval ≤ft( -1,1 \right) . The formula used to compute the weight function is as follows.

w≤ft( x \right) = 1

Value

The value of the weight function

Author(s)

Frederick Novomestky fnovomes@poly.edu

References

Abramowitz, M. and I. A. Stegun, 1968. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, Dover Publications, Inc., New York.

Courant, R., and D. Hilbert, 1989. Methods of Mathematical Physics, John Wiley, New York, NY.

Press, W. H., S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery, 1992. Numerical Recipes in C, Cambridge University Press, Cambridge, U.K.

Szego, G., 1939. Orthogonal Polynomials, 23, American Mathematical Society Colloquium Publications, Providence, RI.

Examples

###
### compute the Legendre weight function for argument values
### between -1 and 1
###
x <- seq( -1, 1, .01 )
y <- legendre.weight( x )
plot( x, y )

orthopolynom documentation built on Oct. 3, 2022, 5:08 p.m.