function i4_choose_log_test ( )

%*****************************************************************************80
%
%% I4_CHOOSE_LOG_TEST tests I4_CHOOSE_LOG.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 March 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_CHOOSE_LOG_TEST\n' );
  fprintf ( 1, '  I4_CHOOSE_LOG evaluates log(C(N,K)).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     N     K    lcnk   elcnk   CNK\n' );
  fprintf ( 1, '\n' );
 
  for n = 0 : 4
    for k = 0 : n
      lcnk = i4_choose_log ( n, k );
      elcnk = exp ( lcnk );
      cnk = i4_choose ( n, k );
      fprintf ( 1, '  %4d  %4d  %14.6g  %14.6g  %4d\n', n, k, lcnk, elcnk, cnk );
    end
  end

  return
end
