function check = i4_choose_check ( n, k )

%*****************************************************************************80
%
%% I4_CHOOSE_CHECK reports whether the binomial coefficient can be computed.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    27 March 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, K, the binomial parameters.
%
%  Output:
%
%    logical CHECK is:
%    true, if C(N,K) < maximum integer.
%    false, otherwise.
%
  i4_huge = 2147483647;

  i4_huge_log = log ( i4_huge );

  choose_nk_log = ...
      r8_gamma_log ( n + 1 ) ...
    - r8_gamma_log ( k + 1 ) ...
    - r8_gamma_log ( n - k + 1 );

  check = ( choose_nk_log < i4_huge_log );
        
  return
end
