function check = log_normal_truncated_ab_check ( mu, sigma, a, b )

%*****************************************************************************80
%
%% log_normal_truncated_ab_check() checks the Log Normal truncated AB PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 March 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real MU, SIGMA, the parameters of the log normal PDF.
%    0.0 < SIGMA.
%
%    real A, B, the lower and upper truncation limits.
%    A < B.
%
%  Output:
%
%    logical CHECK, is true if the parameters are legal.
%
  check = 1;

  if ( sigma <= 0.0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'LOG_NORMAL_TRUNCATED_AB_CHECK - Fatal error!\n' );
    fprintf ( 1, '  SIGMA <= 0.\n' );
    check = 0;
  end

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

  return
end
