function alpert_rule_test ( )

%*****************************************************************************80
%
%% ALPERT_RULE_TEST tests the ALPERT_RULE library.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 November 2018
%
%  Author:
%
%    John Burkardt
%
  addpath ( "../alpert_rule" )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ALPERT_RULE_TEST\n' );
  fprintf ( 1, '  MATLAB/Octave version.\n' );
  fprintf ( 1, '  Test the ALPERT_RULE library.\n' );

  monte_carlo_regular_test ( );
  monte_carlo_log_test ( );
  monte_carlo_power_test ( );

  trapezoid_regular_test ( );
  trapezoid_log_test ( );
  trapezoid_power_test ( );

  alpert_regular_test ( );
  alpert_log_test ( );
  alpert_power_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ALPERT_RULE_TEST\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( "../alpert_rule" )

  return
end


