function r83v_cr_sl_test ( )

%*****************************************************************************80
%
%% R83V_CR_SL_TEST tests R83V_CR_SL.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 February 2016
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  debug = 0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83V_CR_SL_TEST\n' );
  fprintf ( 1, '  R83V_CR_SL solves a factored system\n' );
  fprintf ( 1, '  after R83V_CR_FA has factored it.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
  fprintf ( 1, '  Demonstrate multiple system solution method.\n' );
  fprintf ( 1, '\n' );
%
%  Set the matrix values.
%
  a = 1.0 * ones ( n - 1, 1 );
  b = 4.0 * ones ( n,     1 );
  c = 2.0 * ones ( n - 1, 1 );
%
%  Print the matrix.
%
  r83v_print ( n, n, a, b, c, '  Input matrix A:' );
%
%  Set the desired solution.
%
  x = r8vec_indicator1 ( n );
%
%  Compute the right hand side.
%
  ax = r83v_mv ( n, n, a, b, c, x );
  x(1:n) = 0.0;
%
%  Factor the matrix.
%
  a_cr = r83v_cr_fa ( n, a, b, c );
%
%  Solve the linear system.
%
  x = r83v_cr_sl ( n, a_cr, ax );

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

  return
end

