Ejemplo n.º 1
0
    private static void Main()
    //****************************************************************************80
    //
    //  Purpose:
    //
    //    MAIN is the main program for TETRAHEDRON_ARBQ_RULE_TEST.
    //
    //  Discussion:
    //
    //    TETRAHEDRON_ARBQ_RULE_TEST tests the TETRAHEDRON_ARBQ_RULE library.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU GPL license.
    //
    //  Modified:
    //
    //    11 July 2014
    //
    //  Author:
    //
    //    Original FORTRAN77 version by Hong Xiao, Zydrunas Gimbutas.
    //    C++ version by John Burkardt.
    //
    //  Reference:
    //
    //    Hong Xiao, Zydrunas Gimbutas,
    //    A numerical algorithm for the construction of efficient quadrature
    //    rules in two and higher dimensions,
    //    Computers and Mathematics with Applications,
    //    Volume 59, 2010, pages 663-676.
    //
    {
        Console.WriteLine("");
        Console.WriteLine("TETRAHEDRON_ARBQ_RULE_TEST");
        Console.WriteLine("  Test the TETRAHEDRON_ARBQ_RULE library.");

        int    degree = 8;
        int    n      = QuadratureRule.tetrahedron_arbq_size(degree);
        string header = "tetrahedron08";

        test01(degree, n);

        test02(degree, n, header);

        test03(degree, n, header);

        test04(degree, n);
        Console.WriteLine("");
        Console.WriteLine("TETRAHEDRON_ARBQ_RULE_TEST");
        Console.WriteLine("  Normal end of execution.");
        Console.WriteLine("");
    }