function r8ltt_sl_test ( )

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

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8LTT_SL_TEST\n' );
  fprintf ( 1, '  R8LTT_SL solves a linear system A*x=b with R8LTT matrix;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );

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

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

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

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

  return
end
