function lagrange_nd_test ( )

%*****************************************************************************80
%
%% lagrange_nd_test() tests lagrange_nd().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../lagrange_nd' );

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

  lagrange_nd_test01 ( );
  lagrange_nd_test02 ( );
  lagrange_nd_test03 ( );
  lagrange_nd_test04 ( );
  lagrange_nd_test05 ( );
  lagrange_nd_test06 ( );
  lagrange_nd_test07 ( );
  lagrange_nd_test08 ( );
  lagrange_nd_test09 ( );
  lagrange_nd_test10 ( );

  option = 0
  lagrange_nd_test11 ( option );

  option = 1
  lagrange_nd_test11 ( option );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lagrange_nd_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../lagrange_nd' );

  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

