function normal_01_cdf_test ( )

%*****************************************************************************80
%
%% NORMAL_01_CDF_TEST tests NORMAL_01_CDF, NORMAL_01_CDF_INV, NORMAL_01_PDF;
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'NORMAL_01_CDF_TEST\n' );
  fprintf ( 1, '  NORMAL_01_CDF evaluates the Normal 01 CDF;\n' );
  fprintf ( 1, '  NORMAL_01_CDF_INV inverts the Normal 01 CDF.\n' );
  fprintf ( 1, '  NORMAL_01_PDF evaluates the Normal 01 PDF;\n' );

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

  seed = 123456789;

  for i = 1 : 10

    [ x, seed ] = normal_01_sample ( seed );

    pdf = normal_01_pdf ( x );

    cdf = normal_01_cdf ( x );

    x2 = normal_01_cdf_inv ( cdf );

    fprintf ( 1, '  %14g  %14g  %14g  %14g\n', x, pdf, cdf, x2 );

  end

  return
end
