#include #include int main() { std::cout << "# x n=0,m=0 n=1,m=0 n=1,m=1 n=2,m=0 n=2,m=1 n=2,m=2\n"; for (int i = 0; i <= 200; ++i) { double x = 0.01*i; std::cout << x << '\t' << std::sph_legendre(0, 0, x) << '\t' << std::sph_legendre(1, 0, x) << '\t' << std::sph_legendre(1, 1, x) << '\t' << std::sph_legendre(2, 0, x) << '\t' << std::sph_legendre(2, 1, x) << '\t' << std::sph_legendre(2, 2, x) << '\n'; } }