function area_under_curve_test ( )

%*****************************************************************************80
%
%% AREA_UNDER_CURVE_TEST tests AREA_UNDER_CURVE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 November 2018
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../area_under_curve' )

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

  area_under_curve ( -1.5, +1.5, @f1, 'Y=3/4(1-x^2)', 'f1.png' );

  area_under_curve ( 0.0, 1.0, @f2, 'Y=2*x', 'f2.png' );

  area_under_curve ( 0.0, 3.0, @f3, 'Y=e^{-x}', 'f3.png' );

  area_under_curve ( 0.0, 7.0, @f4, 'Y=Gaussian(x,\mu=5,\sigma=1)', 'f4.png' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'AREA_UNDER_CURVE_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../area_under_curve' )

  return
end
