function z = cheby_t_zero ( n )

%*****************************************************************************80
%
%% cheby_t_zero() returns zeroes of the Chebyshev polynomial T(N)(X).
%
%  Discussion:
%
%    The I-th zero of T(N)(X) is cos((2*I-1)*PI/(2*N)), 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 T(N)(X).
%
  theta = ( 1 : 2 : 2 * n - 1 ) * pi / 2 / n;
  z = cos ( theta );

  return
end
