function r8pbu_fa_test ( )

%*****************************************************************************80
%
%% R8PBU_FA_TEST tests R8PBU_FA.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 50;
  mu = 1;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8PBU_FA_TEST\n' );
  fprintf ( 1, '  R8PBU_FA factors an R8PBU matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
  fprintf ( 1, '  Upper bandwidth MU = %d\n', mu );
  fprintf ( 1, '\n' );
%
%  Set the matrix values.
%
  [ a, seed ] = r8pbu_random ( n, mu, seed );
%
%  Set the desired solution.
%
  x = r8vec_indicator1 ( n );
%
%  Compute the right hand side.
%
  b = r8pbu_mv ( n, mu, a, x );
%
%  Factor the matrix.
%
  [ a_lu, info ] = r8pbu_fa ( n, mu, a );
%
%  Solve the linear system.
%
  x = r8pbu_sl ( n, mu, a_lu, b );
 
  r8vec_print_some ( n, x, 10, '  Solution:' );
 
  return
end
