public static void p_power_product_test(int p, int e) //****************************************************************************80 // // Purpose: // // P_POWER_PRODUCT_TEST tests P_POWER_PRODUCT. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 14 March 2012 // // Author: // // John Burkardt // // Parameters: // // Input, int P, the maximum degree of the polynomial // factors. // // Input, int E, the exponent of X. // { Console.WriteLine(""); Console.WriteLine("P_POWER_PRODUCT_TEST"); Console.WriteLine(" P_POWER_PRODUCT_TEST computes a Legendre power product table."); Console.WriteLine(""); Console.WriteLine(" Tij = integral ( -1.0 <= X <= +1.0 ) X^E P(I,X) P(J,X) dx"); Console.WriteLine(""); Console.WriteLine(" where P(I,X) = Legendre polynomial of degree I."); Console.WriteLine(""); Console.WriteLine(" Maximum degree P = " + p + ""); Console.WriteLine(" Exponent of X, E = " + e + ""); double[] table = Legendre.p_power_product(p, e); typeMethods.r8mat_print(p + 1, p + 1, table, " Power product table:"); }