function pearson_05_pdf_test ( )

%*****************************************************************************80
%
%% PEARSON_05_PDF_TEST tests PEARSON_05_PDF.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    11 April 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PEARSON_05_PDF_TEST\n' );
  fprintf ( 1, '  PEARSON_05_PDF evaluates the Pearson 05 PDF.\n' );

  x = 5.0;

  a = 1.0;
  b = 2.0;
  c = 3.0;

  check = pearson_05_check ( a, b, c );
 
  if ( ~ check );
    fprintf ( 1, '\n' );
    fprintf ( 1, 'PEARSON_05_PDF_TEST - Fatal error!\n' );
    fprintf ( 1, '  The parameters are not legal.\n' );
    return
  end

  pdf = pearson_05_pdf ( x, a, b, c );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PDF argument X =  %14g\n', x );
  fprintf ( 1, '  PDF parameter A = %14g\n', a );
  fprintf ( 1, '  PDF parameter B = %14g\n', b );
  fprintf ( 1, '  PDF parameter C = %14g\n', c );
  fprintf ( 1, '  PDF value =       %14g\n', pdf );

  return
end
