function r8poly_test ( )

%*****************************************************************************80
%
%% r8poly_test() tests r8poly().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 October 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../r8poly' );

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

  r8_sign_test ( );

  r82poly2_print_test ( );
  r82poly2_type_test ( );

  r8mat_inverse_3d_test ( );
  r8mat_print_test ( );
  r8mat_print_some_test ( );

  r8poly_add_test ( );
  r8poly_ant_coef_test ( );
  r8poly_ant_value_test ( );
  r8poly_chebyshev_test ( );
  r8poly_degree_test ( );
  r8poly_deriv_coef_test ( );
  r8poly_deriv_value_test ( );
  r8poly_division_test ( );
  r8poly_hermite_test ( );
  r8poly_integral_test ( );
  r8poly_is_zero_test ( );
  r8poly_lagrange_coef_test ( );
  r8poly_lagrange_0_test ( );
  r8poly_lagrange_1_test ( );
  r8poly_lagrange_2_test ( );
  r8poly_lagrange_factor_test ( );
  r8poly_lagrange_value_test ( );
  r8poly_legendre_test ( );
  r8poly_multiply_test ( );
  r8poly_norm_test ( );
  r8poly_power_test ( );
  r8poly_print_test ( );
  r8poly_shift_test ( );
  r8poly_value_test ( );
  r8poly_value_fast_test ( );
  r8poly_value_horner_test ( );
  r8poly_values_horner_test ( );

  r8poly2_ex_test ( );
  r8poly2_ex2_test ( );
  r8poly2_root_test ( );
  r8poly2_rroot_test ( );
  r8poly2_val_test ( );
  r8poly2_val2_test ( );

  r8poly3_root_test ( );

  r8poly4_root_test ( );

  r8r8_print_test ( );

  r8vec_even_select_test ( );
  r8vec_indicator1_test ( );
  r8vec_is_distinct_test ( );
  r8vec_print_test ( );
  r8vec_transpose_print_test ( );

  roots_to_r8poly_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8poly_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../r8poly' );

  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

