function r8utt_slt_test ( )

%*****************************************************************************80
%
%% R8UTT_SLT_TEST tests R8UTT_SLT.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8UTT_SLT_TEST\n' );
  fprintf ( 1, '  R8UTT_SLT solves a linear system A''x=b with R8UTT matrix;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );

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

  r8utt_print ( n, a, '  Matrix A:' );
%
%  Set the desired solution.
%
  x = r8vec_indicator1 ( n );
%
%  Compute the corresponding right hand side.
%
  b = r8utt_mtv ( n, a, x );

  r8vec_print ( n, b, '  Right hand side b:' );
%
%  Solve the linear system.
%
  x = r8utt_slt ( n, a, b );

  r8vec_print ( n, x, '  Solution x:' );

  return
end
