function hermite_monomial_hermite_test ( )

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

  n = 10;
  hcoef = rand ( n + 1, 1 );
  mcoef = hermite_to_monomial ( n, hcoef );
  hcoef2 = monomial_to_hermite ( n, mcoef );

  e = norm ( hcoef - hcoef2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  L2 difference = %g\n', e );

  return
end
