function check = cosine_check ( a, b )

%*****************************************************************************80
%
%% cosine_check() checks the parameters of the Cosine CDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, the parameters of the PDF.
%    0.0 < B.
%
%  Output:
%
%    logical CHECK, is true if the parameters are legal.
%
  if ( b <= 0.0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'COSINE_CHECK - Fatal error!\n' );
    fprintf ( 1, '  B <= 0.0\n' );
    check = 0;
    error ( 'COSINE_CHECK - Fatal error!' );
  end

  check = 1;

  return
end
