Legendre PDF
y=legendre_pdf(x)
a matrix of doubles
a matrix of doubles, the probability density
Computes the Legendre probability distribution function:
for x in [-1,1]. Its integral is equal to 1.
x=linspace(-1,1,1000); y=legendre_pdf(x); h=scf(); plot(x,y) xtitle("Legendre distribution","x","f(x)") h.children.data_bounds(:,2)=[-0.1;0.6];