function lam = line_adj_eigenvalues ( n )

%*****************************************************************************80
%
%% line_adj_eigenvalues() returns the eigenvalues of the LINE_ADJ matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real LAM(N), the eigenvalues.
%
  lam = zeros ( n, 1 );

  for i = 1 : n
    angle = i * pi / ( n + 1 );
    lam(i) = 2.0 * cos ( angle );
  end

  return
end
