function r8utt_inverse_test ( )

%*****************************************************************************80
%
%% R8UTT_INVERSE_TEST tests R8UTT_INVERSE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8UTT_INVERSE_TEST\n' );
  fprintf ( 1, '  R8UTT_INVERSE computes the inverse of an R8UTT matrix.\n' );

  [ a, seed ] = r8utt_random ( n, seed );

  r8utt_print ( n, a, '  The matrix A:' );
%
%  Compute the inverse matrix B.
%
  b = r8utt_inverse ( n, a );

  r8utt_print ( n, b, '  The inverse matrix B:' );
%
%  Check
%
  c = r8utt_mm ( n, a, b );

  r8utt_print ( n, c, '  The product A * B:' );

  return
end
