function r8ltt_inverse_test ( )

%*****************************************************************************80
%
%% R8LTT_INVERSE_TEST tests R8LTT_INVERSE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8LTT_INVERSE_TEST\n' );
  fprintf ( 1, '  R8LTT_INVERSE computes the inverse of an R8LTT matrix.\n' );

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

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

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

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

  return
end
