function r8ut_inverse_test ( )

%*****************************************************************************80
%
%% r8ut_inverse_test() tests r8ut_inverse().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 August 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8UT_INVERSE_TEST\n' );
  fprintf ( 1, '  R8UT_INVERSE computes the inverse of an R8UT matrix.\n' );

  a = r8ut_random ( n, n );

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

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

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

  return
end
