function x = equidistant2 ( n )

%*****************************************************************************80
%
%% equidistant2() returns the Type 2 Equidistant points.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 March 2018
%
%  Author:
%
%    John Burkardt.
%
%  Input:
%
%    integer N, the number of points.
%
%  Output:
%
%    real X(N), the points.
%
  if ( n == 1 )
    x(1) = 0.0;
  else
    x(1:n) = ( ( 1 - n ) : 2 : ( n - 1 ) ) / ( n - 1 );
  end

  return
end
