function determ = helmert2_determinant ( n )

%*****************************************************************************80
%
%% HELMERT2_DETERMINANT returns the determinant of the HELMERT2 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 November 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%  Output:
%
%    real DETERM, the determinant.
%
  if ( mod ( n, 2 ) == 0 )
    determ = -1.0;
  else
    determ = +1.0;
  end

  return
end
