function monomial_to_laguerre_test ( )

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

  nmax = 6;

  fprintf ( 1, '\n' );
  fprintf ( 1, '        ' );
  for k = 0 : nmax
    fprintf ( 'L%d(x)    ', k );
  end
  fprintf ( 1, '\n' );
  fprintf ( 1, '\n' );
  for n = 0 : nmax
    mcoef = zeros ( n + 1, 1 );
    mcoef(n+1) = 1.0;
    lcoef = monomial_to_laguerre ( n, mcoef );
    fprintf ( 1, 'X^%d =', n );
    for k = 0 : n
      fprintf ( 1, '%8.1f ', lcoef(k+1) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
