function determ = smoke1_determinant ( n )

%*****************************************************************************80
%
%% smoke1_determinant() returns the determinant of the SMOKE1 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%  Output:
%
%    real DETERM, the determinant.
%
  if ( mod ( n, 2 ) == 1 )
    determ =   2.0;
  else
    determ = - 2.0;
  end

  return
end
