public static void bessel_j_spherical_values_test()
    //****************************************************************************80
    //
    //  Purpose:
    //
    //    BESSEL_J_SPHERICAL_VALUES_TEST tests BESSEL_J_SPHERICAL_VALUES.
    //
    //  Licensing:
    //
    //    This code is distributed under the GNU LGPL license.
    //
    //  Modified:
    //
    //    16 January 2016
    //
    //  Author:
    //
    //    John Burkardt
    //
    {
        double fx = 0;
        int    n  = 0;
        double x  = 0;

        Console.WriteLine("");
        Console.WriteLine("BESSEL_J_SPHERICAL_VALUES_TEST:");
        Console.WriteLine("  BESSEL_J_SPHERICAL_VALUES stores values of");
        Console.WriteLine("  the spherical Bessel jn function.");
        Console.WriteLine("");
        Console.WriteLine("      N      X            jn(X)");
        Console.WriteLine("");
        int n_data = 0;

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

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