function bvp_fd_test ( )

%*****************************************************************************80
%
%% bvp_fd_test() tests bvp_fd().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 February 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../bvp_fd' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'bvp_fd_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test bvp_fd().\n' );
  fprintf ( 1, '  A simple example of the finite difference method,\n' )
  fprintf ( 1, '  in which a boundary value problem (BVP) is solved\n' );
  fprintf ( 1, '  by choosing a grid of n points, setting up a linear system\n' );
  fprintf ( 1, '  which enforces boundary conditions, and uses discretized\n' );
  fprintf ( 1, '  versions of derivatives at each point.\n' );
%
%  Request a solution with a given number of nodes.
%
  n = 11;
  bvp_fd ( n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'bvp_fd_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' )
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../bvp_fd' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

