function english_sentence_length_cdf_test ( )

%*****************************************************************************80
%
%% ENGLISH_SENTENCE_LENGTH_CDF_TEST tests ENGLISH_SENTENCE_LENGTH_CDF.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 April 2016
%
%  Author:
%
%    John Burkardt
%
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'ENGLISH_SENTENCE_LENGTH_CDF_TEST\n' );
  fprintf ( 1, '  ENGLISH_SENTENCE_LENGTH_CDF evaluates the English Sentence Length CDF;\n' );
  fprintf ( 1, '  ENGLISH_SENTENCE_LENGTH_CDF_INV inverts the English Sentence Length CDF.\n' );
  fprintf ( 1, '  ENGLISH_SENTENCE_LENGTH_PDF evaluates the English Sentence Length PDF;\n' );

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

  for i = 1 : 10

    [ x, seed ] = english_sentence_length_sample ( seed );

    pdf = english_sentence_length_pdf ( x );

    cdf = english_sentence_length_cdf ( x );

    x2 = english_sentence_length_cdf_inv ( cdf );

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

  end

  return
end
