function check = log_uniform_check ( a, b )

%*****************************************************************************80
%
%% log_uniform_check() checks the parameters of the Log Uniform CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 October 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, the parameters of the PDF.
%    1.0 < A < B.
%
%  Output:
%
%    logical CHECK, is true if the parameters are legal.
%
  if ( a <= 1.0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'LOG_UNIFORM_CHECK - Fatal error!\n' );
    fprintf ( 1, '  A <= 1.\n' );
    check = 0;
    return
  end

  if ( b <= a )
    fprintf ( 1,  '\n' );
    fprintf ( 1, 'LOG_UNIFORM_CHECK - Fatal error!\n' );
    fprintf ( 1, '  B <= A.\n' );
    check = 0;
    return
  end

  check = 1;

  return
end
