function z = w_polynomial_zeros ( n )

%*****************************************************************************80
%
%% W_POLYNOMIAL_ZEROS returns zeroes of the Chebyshev polynomial W(n,x).
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    13 July 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the order of the polynomial.
%
%    Output, real Z(N), the zeroes.
%
  for i = 1 : n
    angle = ( 2 * ( n - i + 1 ) * pi ) / ( 2 * n + 1 );
    z(i) = cos ( angle );
  end

  return
end
