Esempio n. 1
0
    private static void hermite_polynomial_test10(int p, double b)

    //****************************************************************************80
    //
    //  Purpose:
    //
    //    HERMITE_POLYNOMIAL_TEST10 tests HEN_EXPONENTIAL_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, double B, the coefficient of X in the exponential factor.
    //
    {
        double[] table;

        Console.WriteLine("");
        Console.WriteLine("HERMITE_POLYNOMIAL_TEST10");
        Console.WriteLine("  Compute a normalized probabilist''s Hermite exponential product table.");
        Console.WriteLine("");
        Console.WriteLine("  Tij = integral ( -oo < X < +oo ) exp(B*X) Hen(I,X) Hen(J,X) exp(-0.5*X*X) dx");
        Console.WriteLine("");
        Console.WriteLine("  where Hen(I,X) = normalized probabilist''s Hermite polynomial of degree I.");

        Console.WriteLine("");
        Console.WriteLine("  Maximum degree P = " + p + "");
        Console.WriteLine("  Exponential argument coefficient B = " + b + "");

        table = Hermite.hen_exponential_product(p, b);

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