function determ = vand1_determinant ( n, x )

%*****************************************************************************80
%
%% vand1_determinant() returns the determinant of the VAND1 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix desired.
%
%    real X(N), the values that define A.
%
%  Output:
%
%    real DETERM, the determinant.
%
  determ = 1.0;

  for i = 1 : n
    for j = 1 : i - 1
      determ = determ * ( x(i) - x(j) );
    end
  end

  return
end
