function spline_test005 ( )

%*****************************************************************************80
%
%% spline_test005() tests d3_np_fs().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 February 2009
%
%  Author
%
%    John Burkardt
%
  n = 10;
 
  fprintf ( 1, '\n' );
  fprintf ( 1, 'TEST005\n' );
  fprintf ( 1, '  D3_NP_FS factors and solves a tridiagonal linear system.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
%
%  Set the matrix elements.
%
  a = d3_uniform ( n );
%
%  Set the desired solution.
%
  x = r8vec_indicator ( n );
%
%  Compute b = A * x.
%
  b = d3_mxv ( n, a, x );
%
%  Wipe out the solution.
%
  x(1:n) = 0.0;
%
%  Solve the system.
%
  x = d3_np_fs ( n, a, b );

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

  return
end
