function r8_fall_test ( )

%*****************************************************************************80
%
%% r8_fall_test() tests r8_fall().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    25 December 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_FALL_TEST\n' );
  fprintf ( 1, '  R8_FALL evaluates the falling factorial Fall(X,N).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      X        N                     Exact' );
  fprintf ( 1, '                  Computed\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, x, n, f1 ] = r8_fall_values ( n_data );

    if ( n_data == 0 )
      break
    end

    f2 = r8_fall ( x, n );

    fprintf ( 1, '  %8.4f  %4d  %24.16g  %24.16g\n', x, n, f1, f2 );

  end
 
  return
end
