Exemplo n.º 1
0
    private static void hermite_polynomial_test09(int p, int e)

    //****************************************************************************80
    //
    //  Purpose:
    //
    //    HERMITE_POLYNOMIAL_TEST09 tests HN_POWER_PRODUCT.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU LGPL license.
    //
    //  Modified:
    //
    //    26 February 2012
    //
    //  Author:
    //
    //    John Burkardt
    //
    //  Parameters:
    //
    //    Input, int P, the maximum degree of the polynomial
    //    factors.
    //
    //    Input, int E, the exponent of X.
    //
    {
        double[] table;

        Console.WriteLine("");
        Console.WriteLine("HERMITE_POLYNOMIAL_TEST09");
        Console.WriteLine("  Compute a normalized physicist''s Hermite power product table.");
        Console.WriteLine("");
        Console.WriteLine("  Tij = integral ( -oo < X < +oo ) X^E Hn(I,X) Hn(J,X) exp(-X*X) dx");
        Console.WriteLine("");
        Console.WriteLine("  where Hn(I,X) = normalized physicist''s Hermite polynomial of degree I.");

        Console.WriteLine("");
        Console.WriteLine("  Maximum degree P = " + p + "");
        Console.WriteLine("  Exponent of X, E = " + e + "");

        table = Hermite.hn_power_product(p, e);

        typeMethods.r8mat_print(p + 1, p + 1, table, "  Power product table:");
    }