#include #include int main() { std::cout << "# x n=0 n=1 n=2 n=3 n=4 n=5 n=6\n"; for (int i = -100; i <= 100; ++i) { double x = 0.01*i; std::cout << x << '\t' << std::legendre(0, x) << '\t' << std::legendre(1, x) << '\t' << std::legendre(2, x) << '\t' << std::legendre(3, x) << '\t' << std::legendre(4, x) << '\t' << std::legendre(5, x) << '\n'; } }