function chebyshev_polynomial_test04 ( )

%*****************************************************************************80
%
%% chebyshev_polynomial_test04() tests t_polynomial_zeros().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 April 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'chebyshev_polynomial_test04():\n' );
  fprintf ( 1, '  t_polynomial_zeros() computes the zeros of T(n,x);\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     N      X         T(n,x)\n' );

  for n = 1 : 5

    x = t_polynomial_zeros ( n );
    fx = t_polynomial ( n, n + 1, x );

    fprintf ( 1, '\n' );
    for i = 1 : n
      fprintf ( 1, '  %4d  %8.4f  %14.6g\n', i, x(i), fx(i,n+1) );
    end

  end

  return
end
