function z = cheby_u_zero ( n )

%*****************************************************************************80
%
%% cheby_u_zero() returns zeroes of the Chebyshev polynomial U(N)(X).
%
%  Discussion:
%
%    The I-th zero of U(N)(X) is cos((I-1)*PI/(N-1)), I = 1 to N
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 May 2011
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the polynomial.
%
%  Output:
%
%    real Z(N), the zeroes of U(N)(X).
%
  theta = ( 1 : n ) * pi / ( n + 1 );
  z = cos ( theta );

  return
end
