function humps_antideriv_test ( )

%*****************************************************************************80
%
%% humps_antideriv_test() tests humps_antideriv().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 June 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'humps_antideriv_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  humps_antideriv() evaluates the humps antiderivative.\n' );

  a = 0.0;
  b = 2.0;
  x = linspace ( 0.0, 2.0, 101 );
  y = humps_antideriv ( x );

  clf ( );

  hold ( 'on' )

    plot ( x, y, 'g-', 'Linewidth', 2 );

    if ( a <= 0.0 && 0.0 <= b )
      plot ( [a,b], [0,0], 'k-', 'linewidth', 2 );
    end

    ymin = min ( y );
    ymax = max ( y );
    if ( ymin <= 0.0 && 0.0 <= ymax )
      plot ( [0, 0], [ymin,ymax], 'k-', 'linewidth', 2 );
    end

  hold ( 'off' );

  grid ( 'on' );
  xlabel ( '<--- X --->' );
  ylabel ( '<--- Y --->' );
  title ( 'The y = antideriv humps(x)' );
  pause ( 5 );
  filename = 'humps_antideriv.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'humps_antideriv_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

