function newton_rc_test ( )

%*****************************************************************************80
%
%% newton_rc_test tests newton_rc().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 April 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../newton_rc' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'newton_rc_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  newton_rc() seeks a solution x of one or more nonlinear\n' );
  fprintf ( 1, '  equations f(x)=0 using Newton''s method with\n' );
  fprintf ( 1, '  reverse communication.\n' );

  newton_rc_test01 ( );
  newton_rc_test02 ( );
  newton_rc_test03 ( );
  newton_rc_test04 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'newton_rc_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../newton_rc' );

  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

