function x = r8vec_cheby_zero ( n, a, b )

%*****************************************************************************80
%
%% r8vec_cheby_zero() returns the Chebyshev Zero nodes for [A,B];
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 August 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    real A, B, the first and last entries.
%
%  Output:
%
%    real X(N), a vector of Chebyshev Zero nodes.
%
  x(1:n,1) = 0.5 * ( a + b + ( b - a ) ...
    * cos ( pi * ( 2 * n - 2 * (1:n)' + 1 ) / ( 2 * n ) ) );

  return
end
