function r8to_sl_test ( )

%*****************************************************************************80
%
%% R8TO_SL_TEST tests R8TO_SL.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 September 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8TO_SL_TEST\n' );
  fprintf ( 1, '  R8TO_SL solves a A*x=b where A is an R8TO matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );

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

  r8to_print ( n, a, '  The Toeplitz matrix:' );
%
%  Set the desired solution.
%
  x = r8vec_indicator1 ( n );
%
%  Compute the corresponding right hand side.
%
  b = r8to_mv ( n, a, x );
%
%  Solve the linear system.
%
  x = r8to_sl ( n, a, b );

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