function divdif_test ( )

%*****************************************************************************80
%
%% divdif_test() tests divdif().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 October 2024
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../divdif' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'divdif_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test divdif()\n' );

  cheby_t_zero_test ( );
  cheby_u_zero_test ( );
  data_to_dif_test ( );
  data_to_dif_display_test ( );
  data_to_r8poly_test ( );
  data_to_table_test ( );
  dif_antideriv_test ( );
  dif_append_test ( );
  dif_basis_test ( );
  dif_basis_deriv_test ( );
  dif_basis_derivk_test ( );
  dif_deriv_test ( );
  dif_derivk_table_test ( );
  dif_print_test ( );
  dif_shift_zero_test ( );
  dif_to_r8poly_test ( );
  dif_value_test ( );
  lagrange_rule_test ( );
  lagrange_sum_test ( );
  lagrange_value_test ( );
  ncc_rule_test ( );
  nco_rule_test ( );
  r8poly_ant_coef_test ( );
  r8poly_ant_value_test ( );
  r8poly_basis_test ( );
  r8poly_deriv_coef_test ( );
  r8poly_deriv_value_test ( );
  r8poly_print_test ( );
  r8poly_shift_test ( );
  r8poly_value_horner_test ( );
  r8vec_is_distinct_test ( );
  roots_to_dif_test ( );
  roots_to_r8poly_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'divdif_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../divdif' );

  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

