function c = kahan_condition ( alpha, n )

%*****************************************************************************80
%
%% kahan_condition() returns the L1 condition of the KAHAN matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 October 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real ALPHA, the scalar that defines A.  A typical 
%    value is 1.2.  The "interesting" range of ALPHA is 0 < ALPHA < PI.
%
%    integer N, the order of A.
%
%  Output:
%
%    real C: the L1 condition number.
%
  A = kahan_matrix ( alpha, n, n );
  normA = norm ( A, 1 );
  B = kahan_inverse ( alpha, n );
  normB = norm ( B, 1 );
  c = normA * normB;

  return
end
