function velocity_verlet_test ( )

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

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'velocity_verlet_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test velocity_verlet().\n' );

  n = 50;
  oscillator_velocity_verlet ( n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'velocity_verlet_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../velocity_verlet' );

  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


