function determ = upshift_determinant ( n )

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

  return
end
