function lambda = dif1_eigenvalues ( n )

%*****************************************************************************80
%
%% DIF1_EIGENVALUES returns the eigenvalues of the DIF1 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%  Output:
%
%    complex LAMBDA(N,1), the eigenvalues.
%
  lambda = zeros ( n, 1 );

  for i = 1 : n
    angle = i * pi / ( n + 1 );
    lambda(i,1) = complex ( 0.0, 2.0 * cos ( angle ) );
  end

  return
end
