function nonlin_snyder_test ( )

%*****************************************************************************80
%
%% nonlin_snyder_test() tests nonlin_snyder().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 July 2023
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../nonlin_snyder' );

  timestamp ( );
  fprintf ( 1, 'nonlin_snyder_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  nonlin_snyder() is an interactive program to seek\n' );
  fprintf ( 1, '  a root of an equation using the Snyder method.\n' );

  a = 0.0;
  b = 8.0;
  [ a, b, fa, fb ] = nonlin_snyder ( 'x^2 - 2*x - 15', a, b );

  a = 0.0;
  b = 1.0;
  [ a, b, fa, fb ] = nonlin_snyder ( 'cos(x) - x', a, b );

  a = 0.0;
  b = 10.0;
  [ a, b, fa, fb ] = nonlin_snyder ( 'kepler(x)', a, b );

  a = 0.5;
  b = 1.5;
  [ a, b, fa, fb ] = nonlin_snyder ( 'x^5 - 2.0', a, b );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'nonlin_snyder_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../nonlin_snyder' );

  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

