Beispiel #1
0
    private static void Main()
    //****************************************************************************80
    //
    //  Purpose:
    //
    //    MAIN is the main program for CUBE_ARBQ_RULE_TEST.
    //
    //  Discussion:
    //
    //    CUBE_ARBQ_RULE_TEST tests the CUBE_ARBQ_RULE library.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU GPL license.
    //
    //  Modified:
    //
    //    09 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("CUBE_ARBQ_RULE_TEST");
        Console.WriteLine("  C version");
        Console.WriteLine("  Test the CUBE_ARBQ_RULE library.");

        int    degree = 8;
        int    n      = QuadratureRule.cube_arbq_size(degree);
        string header = "cube08";

        test01(degree, n);

        test02(degree, n, header);

        test03(degree, n, header);

        test04(degree, n);

        Console.WriteLine("");
        Console.WriteLine("CUBE_ARBQ_RULE_TEST");
        Console.WriteLine("  Normal end of execution.");
        Console.WriteLine("");
    }