function hermite_poly_phys_coef_test ( )

%*****************************************************************************80
%
%% HERMITE_POLY_PHYS_COEF_TEST tests HERMITE_POLY_PHYS_COEF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2008
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'HERMITE_POLY_PHYS_COEF_TEST\n' );
  fprintf ( 1, '  HERMITE_POLY_PHYS_COEF determines the Hermite \n' );
  fprintf ( 1, '  physicist''s polynomial coefficients.\n' );

  c = hermite_poly_phys_coef ( n );
 
  for i = 0 : n
    fprintf ( 1, '\n' );
    fprintf ( 1, '  H(%d)\n', i );
    fprintf ( 1, '\n' );
    for j = i : -1 : 0
      if ( j == 0 )
        fprintf ( 1, '  %f\n', c(i+1,j+1) );
      elseif ( j == 1 )
        fprintf ( 1, '  %f * x\n', c(i+1,j+1) );
      else
        fprintf ( 1, '  %f * x^%d\n', c(i+1,j+1), j );
      end
    end
  end

  return
end
