#include #include "nr.h" /* Legendre polynomial */ float P(int l,float x) { float i,p0,p1,p2; if (l==0) return(1); if (l==1) return(x); p0 = 1; p1 = x; for (i=1;i