function kelley_test ( )

%*****************************************************************************80
%
%% kelley_test() tests kelley().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    14 April 2021
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Tim Kelley,
%    Iterative Methods for Linear and Nonlinear Equations,
%    SIAM, 2004,
%    ISBN: 0898713528,
%    LC: QA297.8.K45.
%
  addpath ( '../kelley' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'kelley_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test kelley()\n' );

  arnoldi_test ( );
  bicgstab_test ( );
  broyden_test ( );
  broyden_armijo_test ( );
  cg_test ( );
  diffjac_test ( );
  gmres_test ( );
  gmresa_test ( );
  gmresb_test ( );
  nsol_test ( );
  nsola_test ( );
  nsolgm_test ( );
  pcg_test ( );
  sintv_test ( );
  tfqmr_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'kelley_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../kelley' );

  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


