function legendre_polynomial_test ( )

%*****************************************************************************80
%
%% legendre_polynomial_test tests legendre_polynomial.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    13 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../legendre_polynomial' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'legendre_polynomial_test:\n' );
  fprintf ( 1, '  MATLAB version.\n' );
  fprintf ( 1, '  Test legendre_polynomial.\n' );

  p = 5;
  b = 0.0;
  p_exponential_product_test ( p, b );

  p = 5;
  b = 1.0;
  p_exponential_product_test ( p, b );

  p_polynomial_coefficients_test ( );
  p_polynomial_prime_test ( );
  p_polynomial_prime2_test ( );
  p_polynomial_value_test ( );
  p_polynomial_zeros_test ( );

  p = 5;
  e = 0;
  p_power_product_test ( p, e );

  p = 5;
  e = 1;
  p_power_product_test ( p, e );

  p_quadrature_rule_test ( );

  pm_polynomial_value_test ( );

  pmn_polynomial_value_test ( );

  pmns_polynomial_value_test ( );

  p = 5;
  pn_pair_product_test ( p );
  pn_polynomial_coefficients_test ( );
  pn_polynomial_value_test ( );

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

  rmpath ( '../legendre_polynomial' );

  return
end
