00001 /* Returns the value of the associated Legendre polynomial P_l^m(x) for -1 <= x <= 1 and 0 <= m <= l */ 00002 extern double plgndr(int l, int m, double x); 00003 00004 /* Returns the value of the spherical harmonic Y_l^m(theta, 0) */ 00005 extern double sphericalY(int l, int m, double theta); 00006