function determ = jacobi_legendre_determinant ( n )

%*****************************************************************************80
%
%% jacobi_legendre_determinant() returns the determinant of the JACOBI LEGENDRE matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%  Output:
%
%    real DETERM, the determinant.
%
  if ( mod ( n, 2 ) == 1 )
  
    determ = 0.0;
    
  else
  
    lambda = legendre_zeros ( n );
  
    determ = prod ( lambda(1:n) );

  end

  return
end
