function hermite_to_monomial_test ( )

%*****************************************************************************80
%
%% hermite_to_monomial_test() tests hermite_to_monomial().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'hermite_to_monomial_test ( )\n' );
  fprintf ( 1, '  hermite_to_monomial() converts a\n' );
  fprintf ( 1, '  polynomial from Hermite form\n' );
  fprintf ( 1, '  to monomial form.\n' );

  nmax = 6;

  fprintf ( 1, '\n' );
  fprintf ( 1, '           ' );
  for k = 0 : nmax
    fprintf ( 1, 'X^%d     ', k );
  end
  fprintf ( 1, '\n' );
  fprintf ( 1, '\n' );

  for n = 0 : nmax
    hcoef = zeros ( n + 1, 1 );
    hcoef(n+1) = 1.0;
    mcoef = hermite_to_monomial ( n, hcoef );
    fprintf ( 1, 'H%d(x) = ', n );
    for k = 0 : n
      fprintf ( 1, '%8.3f', mcoef(k+1) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
