function r8ge_fss_test ( )

%*****************************************************************************80
%
%% r8ge_fss_test() tests r8ge_fss().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 June 2009
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  nb = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ge_fss_test():\n' );
  fprintf ( 1, '  r8ge_fss() factors and solves multiple linear systems\n' );
  fprintf ( 1, '  associated with an R8GE matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
%
%  Set the matrix.
%
  a = r8ge_random ( n, n );
%
%  Set the desired solutions.
%
  x(1:n,1) = 1.0;
  x(1:n,2) = 1:n;
  x(1:n,3) = mod ( 0 : n - 1, 3 ) + 1;

  b(1:n,1:nb) = a(1:n,1:n) * x(1:n,1:nb);
%
%  Factor and solve the system.
%
  x = r8ge_fss ( n, a, nb, b );
 
  r8ge_print ( n, nb, x, '  Solution:' );

  return
end
