LegNorm: Evaluating Legendre's Polynomials of Degree 1, 2, 3, or 4

Description Usage Arguments Value Note Author(s) References Examples

Description

This function evaluates the values of Legendre polynomials of degrees 1 to 4 on [0,1] at a value(s) x.

Usage

1

Arguments

x

A scaler or vector of values at which the Legendre's ploynomials are to be evaluated.

Value

The returned list has the following elements:

p1

p1 is value(s) of the Legendre's polynomial of degree 1 at x

p2

p2 is value(s) of the Legendre's polynomial of degree 2 at x

p3

p3 is value(s) of the Legendre's polynomial of degree 3 at x

p4

p4 is value(s) of the Legendre's polynomial of degree 4 at x

Note

Legendre's polynomias on [0,1] are calculated.

Author(s)

Mortaza Jamshidian, Siavash Jalal, and Camden Jansen

References

David, F. N. (1939). “On Neyman's "smooth" test for goodness of fit: I. Distribution of the criterion Psi2 when the hypothesis tested is true,” Biometrika, 31, 191-199.

Examples

1
2
p <- LegNorm(c(5.2,11,15))
p$p3

Example output

           [,1]
[1,]   5456.492
[2,]  61172.416
[3,] 161202.982

MissMech documentation built on May 2, 2019, 1:08 p.m.