function birthday_cdf_test ( )

%*****************************************************************************80
%
%% BIRTHDAY_CDF_TEST tests BIRTHDAY_CDF, BIRTHDAY_CDF_INV, BIRTHDAY_PDF.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    09 March 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'BIRTHDAY_CDF_TEST\n' );
  fprintf ( 1, '  BIRTHDAY_CDF evaluates the Birthday CDF;\n' );
  fprintf ( 1, '  BIRTHDAY_CDF_INV inverts the Birthday CDF.\n' );
  fprintf ( 1, '  BIRTHDAY_PDF evaluates the Birthday PDF;\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '       N            PDF           CDF            CDF_INV\n' );
  fprintf ( 1, '\n' );

  for n = 1 : 30

    pdf = birthday_pdf ( n );

    cdf = birthday_cdf ( n );

    n2 = birthday_cdf_inv ( cdf );

    fprintf ( 1, '  %8d  %14g  %14g  %8d\n', n, pdf, cdf, n2 );

  end

  return
end
