<< legendre_variance Legendre

Orthogonal Polynomials >> Orthogonal Polynomials > Legendre > legendre_weight

legendre_weight

Legendre weight function

Calling Sequence

y=legendre_weight(x)

Parameters

x :

a matrix of doubles

y :

a matrix of doubles, the weight

Description

Computes the Legendre weight function:

for x in [-1,1].

Examples

x=linspace(-1,1,1000);
y=legendre_weight(x);
h=scf();
plot(x,y)
xtitle("Legendre weight","x","w(x)")
h.children.data_bounds(:,2)=[-0.1;1.1];

v=intg(-1,1,legendre_weight)
2

Authors


Report an issue
<< legendre_variance Legendre