<< legendre_quadrature Legendre legendre_weight >>

Orthogonal Polynomials >> Orthogonal Polynomials > Legendre > legendre_variance

legendre_variance

Variance of Legendre polynomials

Calling Sequence

y=legendre_variance(n)

Parameters

n :

a 1-by-1 matrix of doubles, integer value, n>=0.

y :

a matrix of doubles, the variance

Description

Compute the variance

for n=0,1,2,..., where X is a uniform random variable in the interval [-1,1].

Examples

legendre_variance(0)
legendre_variance(1)
legendre_variance(2)

Authors


Report an issue
<< legendre_quadrature Legendre legendre_weight >>