Legendre weight function
y=legendre_weight(x)
a matrix of doubles
a matrix of doubles, the weight
Computes the Legendre weight function:
for x in [-1,1].
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