function bessel_i1_test ( )

%*****************************************************************************80
%
%% BESSEL_I1_TEST tests BESSEL_I1.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    15 April 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'BESSEL_I1_TEST:\n' );
  fprintf ( 1, '  BESSEL_I1 evaluates the Bessel function I1(X);\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       X       Exact F       I1(X)\n' );
  fprintf ( 1, '\n' );
  n_data = 0;

  while ( 1 )

    [ n_data, x, fx ] = bessel_i1_values ( n_data );

    if ( n_data == 0 );
      break
    end

    fx2 = bessel_i1 ( x );

    fprintf ( 1, '  %8f  %14g  %14g\n', x, fx, fx2 );

  end

  return
end
