function polynomial_conversion_test ()

%*****************************************************************************80
%
%% polynomial_conversion_test() tests polynomial_conversion().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 April 2024
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../polynomial_conversion' );

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

  bernstein_to_legendre01_test ( );
  bernstein_to_legendre01_matrix_test ( );
  legendre01_to_bernstein_test ( );
  legendre01_to_bernstein_matrix_test ( );
  bernstein_legendre01_bernstein_test ( );

  bernstein_to_monomial_test ( );
  bernstein_to_monomial_matrix_test ( );
  monomial_to_bernstein_test ( );
  monomial_to_bernstein_matrix_test ( );
  bernstein_monomial_bernstein_test ( );

  chebyshev_to_monomial_test ( );
  monomial_to_chebyshev_test ( );
  chebyshev_monomial_chebyshev_test ( );

  gegenbauer_to_monomial_test ( );
  gegenbauer_to_monomial_matrix_test ( );
  monomial_to_gegenbauer_test ( );
  monomial_to_gegenbauer_matrix_test ( );
  gegenbauer_monomial_gegenbauer_test ( );

  hermite_to_monomial_test ( );
  hermite_to_monomial_matrix_test ( );
  monomial_to_hermite_test ( );
  monomial_to_hermite_matrix_test ( );
  hermite_monomial_hermite_test ( );

  laguerre_to_monomial_test ( );
  laguerre_to_monomial_matrix_test ( );
  monomial_to_laguerre_test ( );
  monomial_to_laguerre_matrix_test ( );
  laguerre_monomial_laguerre_test ( );

  legendre_to_monomial_test ( );
  legendre_to_monomial_matrix_test ( );
  monomial_to_legendre_test ( );
  monomial_to_legendre_matrix_test ( );
  legendre_monomial_legendre_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polynomial_conversion_test ( )\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  timestamp ( );

  rmpath ( '../polynomial_conversion' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2022
%
%  Author:
%
%    John Burkardt
%
  t = now ( );
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end
