function cond = tri_upper_condition ( alpha, n )

%*****************************************************************************80
%
%% tri_upper_condition() returns the L1 condition of the TRI_UPPER matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 January 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real ALPHA, value used on the superdiagonals.
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real COND, the L1 condition.
%
  a_norm = ( n - 1 ) * abs ( alpha ) + 1.0;
  b_norm = 1.0 + abs ( alpha ) ...
    * ( ( abs ( alpha - 1.0 ) ) ^ ( n - 1 ) - 1.0 ) ...
    / ( abs ( alpha - 1.0 ) - 1.0 );
  cond = a_norm * b_norm;

  return
end
