function mcoef = hermite_to_monomial ( n, hcoef )

%*****************************************************************************80
%
%% hermite_to_monomial() converts from Hermite to monomial form.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2024
%
%  Author:
%
%    John Burkardt.
%
%  Input:
%
%    integer n: the order of the polynomial.
%
%    real hcoef(1:n+1): the Hermite coefficients of the polynomial.
% 
%  Output:
%
%    real mcoef(1:n+1): the monomial coefficients of the polynomial.
%
  if ( n < 0 )
    return
  end
%
%  Force hcoef to be a column vector!
%
  hcoef = hcoef(:);
%
%  Get matrix.
%
  A = hermite_to_monomial_matrix ( n + 1 );

  mcoef = A * hcoef;

  return
end
