function polar_ode_test ( )

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

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polar_ode_test()\n' );
  fprintf ( 1, '  MATLAB/Octave version "%s"\n', version ( ) );
  fprintf ( 1, '  Test polar_ode, an ordinary differential equation (ODE)\n' );
  fprintf ( 1, '  involving a complex variable, whose solution is best \n' );
  fprintf ( 1, '  viewed in a polar coordinate plot.\n' );

  [ t0, z0, tstop ] = polar_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameter values:\n' );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    z0    = (%g,%g)\n', z0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  n = 201;
  polar_midpoint ( n );

  polar_ode45 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polar_ode_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../polar_ode' );

  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

