function mcoef = laguerre_to_monomial ( n, lcoef )

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

  mcoef = A * lcoef;

  return
end
