function chi_square_pdf_values_test ( )

%*****************************************************************************80
%
%% chi_square_pdf_values_test() tests chi_square_pdf_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 August 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'chi_square_pdf_values_test():\n' );
  fprintf ( 1, '  chi_square_pdf_values() returns values of\n' );
  fprintf ( 1, '  the Chi-Squared Probability Density Function.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        DF       X             CHI_PDF(X)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, df, x, fx ] = chi_square_pdf_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %8g  %8g  %24.16g\n', df, x, fx );

  end

  return
end
