function w_polynomial_coefficients_test ( )

%*****************************************************************************80
%
%% W_POLYNOMIAL_COEFFICIENTS_TEST tests W_POLYNOMIAL_COEFFICIENTS.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    16 July 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'W_POLYNOMIAL_COEFFICIENTS_TEST\n' );
  fprintf ( 1, '  W_POLYNOMIAL_COEFFICIENTS determines the Chebyshev \n' );
  fprintf ( 1, '  polynomial coefficients.\n' );

  c = w_polynomial_coefficients ( n );
 
  for i = 0 : n
    for j = 0 : i
      c2(j+1) = c(i+1,j+1);
    end
    r8poly_print ( i, c2, '' );
  end

  return
end
