function r8ge_fs_test ( )

%*****************************************************************************80
%
%% r8ge_fs_test() tests r8ge_fs().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 March 2009
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ge_fs_test():\n' );
  fprintf ( 1, '  r8ge_fs() factors and solves a linear system involving\n' );
  fprintf ( 1, '  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 solution.
%
  x = r8vec_indicator1 ( n );
%
%  Compute the corresponding right hand side.
%
  b = r8ge_mv ( n, n, a, x );
%
%  Factor and solve the system.
%
  x = r8ge_fs ( n, a, b );
 
  r8vec_print ( n, x, '  Solution:' );

  return
end
