function determ = milnes_determinant ( n, x )

%*****************************************************************************80
%
%% milnes_determinant() returns the determinant of the MILNES matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%    real X(N-1), the lower column values.
%
%  Output:
%
%    real DETERM, the determinant.
%
  if ( n == 1 )
    determ = 1.0;
  else
    determ = prod ( 1.0 - x(1:n-1) );
  end

  return
end
