function r8ge_hilbert_inverse_test ( )

%*****************************************************************************80
%
%% R8GE_HILBERT_INVERSE_TEST tests R8GE_HILBERT_INVERSE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    01 February 2016
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8GE_HILBERT_INVERSE_TEST\n' );
  fprintf ( 1, '  R8GE_HILBERT_INVERSE computes the inverse of the\n' );
  fprintf ( 1, '  Hilbert matrix, stored as an R8GE matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );

  a = r8ge_hilbert ( n, n );
  r8ge_print ( n, n, a, '  Matrix A:' );

  b = r8ge_hilbert_inverse ( n );

  r8ge_print ( n, n, b, '  Inverse matrix B:' );
%
%  Check.
%
  c = r8ge_mm ( n, n, n, a, b );

  r8ge_print ( n, n, c, '  Product A * B:' );

  return
end
