function chebyshev1_cdf_test ( )

%*****************************************************************************80
%
%% CHEBYSHEV1_CDF_TEST() tests CHEBYSHEV1_CDF().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 August 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'CHEBYSHEV1_CDF_TEST():\n' );
  fprintf ( 1, '  CHEBYSHEV1_CDF() evaluates the Chebyshev1 CDF;\n' );
  fprintf ( 1, '  CHEBYSHEV1_CDF_INV() inverts the Chebyshev1 CDF.\n' );
  fprintf ( 1, '  CHEBYSHEV1_PDF() evaluates the Chebyshev1 PDF;\n' );

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

  for i = 1 : 10

    x = chebyshev1_sample ( );

    pdf = chebyshev1_pdf ( x );

    cdf = chebyshev1_cdf ( x );

    x2 = chebyshev1_cdf_inv ( cdf );

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

  end

  return
end
