function r8but_slt_test ( )

%*****************************************************************************80
%
%% R8BUT_SLT_TEST tests R8BUT_SLT_TEST.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 October 2015
%
%  Author:
%
%    John Burkardt
%
  mu = 3;
  n = 10;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8BUT_SLT_TEST\n' );
  fprintf ( 1, '  R8BUT_SLT solves A''*x=b, where A is an R8BUT matrix;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
  fprintf ( 1, '  Upper bandwidth MU = %d\n', mu );

  [ a, seed ] = r8but_random ( n, mu, seed );
  r8but_print ( n, mu, a, '  The R8BUT matrix:' );
%
%  Set the desired solution.
%
  x = r8vec_indicator1 ( n );
  r8vec_print ( n, x, '  x:' );
%
%  Compute the corresponding right hand side.
%
  b = r8but_mtv ( n, mu, a, x );
  r8vec_print ( n, b, '  b:' );
%
%  Solve the linear system.
%
  x = r8but_slt ( n, mu, a, b );
  r8vec_print ( n, x, '  x:' );

  return
end
