function c = herndon_condition ( n )

%*****************************************************************************80
%
%% herndon_condition() returns the L1 condition of the Herndon matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 November 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real C: the condition number.
%
  A = herndon_matrix ( n );
  anorm = norm ( A, 1 );
  bnorm = ( n * ( n + 1 ) ) / 2.0;
  c = anorm * bnorm;

  return
end
