function laguerre_to_monomial_test ( )

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

  nmax = 6;

  fprintf ( 1, '\n' );
  fprintf ( 1, '           ' );
  for k = 0 : nmax
    fprintf ( 1, 'X^%d     ', k );
  end
  fprintf ( 1, '\n' );
  fprintf ( 1, '\n' );

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

  return
end
