Exemplo n.º 1
0
    public static void bessel_i1_spherical_values_test()
    //****************************************************************************80
    //
    //  Purpose:
    //
    //    BESSEL_I1_SPHERICAL_VALUES_TEST tests BESSEL_I1_SPHERICAL_VALUES.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU LGPL license.
    //
    //  Modified:
    //
    //    06 January 2007
    //
    //  Author:
    //
    //    John Burkardt
    //
    {
        double fx = 0;
        double x  = 0;

        Console.WriteLine("");
        Console.WriteLine("BESSEL_I1_SPHERICAL_VALUES_TEST:");
        Console.WriteLine("  BESSEL_I1_SPHERICAL_VALUES stores values of");
        Console.WriteLine("  the spherical Bessel i1 function.");
        Console.WriteLine("");
        Console.WriteLine("      X            i1(X)");
        Console.WriteLine("");
        int n_data = 0;

        for (;;)
        {
            Bessel.bessel_i1_spherical_values(ref n_data, ref x, ref fx);
            if (n_data == 0)
            {
                break;
            }

            Console.WriteLine("  "
                              + x.ToString(CultureInfo.InvariantCulture).PadLeft(12) + "  "
                              + fx.ToString(CultureInfo.InvariantCulture).PadLeft(12) + "");
        }
    }