function value = diagonal_condition ( n, x )

%*****************************************************************************80
%
%% diagonal_condition() returns the L1 condition of the DIAGONAL matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 January 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%    real X(N), the diagonal entries of A.
%
%  Output:
%
%    real VALUE, the L1 condition.
%
  value = max ( abs ( x(1:n) ) ) / min ( abs ( x(1:n) ) );

  return
end
