function lcoef = monomial_to_laguerre ( n, mcoef )

%*****************************************************************************80
%
%% monomial_to_laguerre() converts from monomial to Laguerre 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 mcoef(1:n+1): the monomial coefficients of the polynomial.
% 
%  Output:
%
%    real lcoef(1:n+1): the Laguerre coefficients of the polynomial.
%
  if ( n < 0 )
    return;
  end
%
%  Force coefficients to be a column vector!.
%
  mcoef = mcoef(:);
%
%  Get the matrix.
%
  A = monomial_to_laguerre_matrix ( n + 1 );
%
%  Compute linear map.
%
  lcoef = A * mcoef;

  return
end
