function f_cdf_test ( )

%*****************************************************************************80
%
%% f_cdf_test() tests f_cdf().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 April 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'F_CDF_TEST():\n' );
  fprintf ( 1, '  F_CDF() evaluates the F CDF.\n' );
  fprintf ( 1, '  F_PDF() evaluates the F PDF.\n' );

  m = 1;
  n = 1;
  
  if ( ~ f_check ( m, n ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'f_cdf_test(): Fatal error!\n' );
    fprintf ( 1, '  The parameters are not legal!\n' );
    return
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PDF parameter M = %6d\n', m );
  fprintf ( 1, '  PDF parameter N = %6d\n', n );

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

  for i = 1 : 10

    x = f_sample ( m, n );

    pdf = f_pdf ( x, m, n );

    cdf = f_cdf ( x, m, n );

    fprintf ( 1, '  %14g  %6d  %6d  %14g  %14g\n', x, m, n, pdf, cdf );

  end

  return
end
