function ill_bvp_test ( )

%*****************************************************************************80
%
%% ill_bvp_test() tests ill_bvp() using bvp4c().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 June 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../ill_bvp' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ill_bvp_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Seek solution of ill_bvp() using bvp4c().\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  epsilon y" - x y'' + y = 0\n' );
  fprintf ( 1, '  y(-1) = 2, y(1) = 1\n' );
  fprintf ( 1, '\n' );

  global epsilon

  epsilon_test = [ 1.0, 0.1, 0.02, 0.01 ];
%
%  Seek solutions of the ill conditioned BVP using bvp4c().
%
  for test = 1 : 4
    epsilon = epsilon_test(test);
    ill_bvp_bvp4c ( epsilon );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ill_bvp_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../ill_bvp' );

  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

