function determ = ijfact2_determinant ( n )

%*****************************************************************************80
%
%% ijfact2_determinant() returns the determinant of the IJFACT2 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 January 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real DETERM, the determinant.
%
  determ = 1.0;

  for i = 0 : n - 1
    determ = determ * factorial ( i ) / factorial ( n + 1 + i );
  end

  if ( mod ( ( n * ( n - 1 ) ) / 2, 2 ) ~= 0 )
    determ = - determ;
  end

  return
end
