function value = bumpy ( x )

%*****************************************************************************80
%
%% bumpy is a test function with 10 local minimizers between 0 and 7.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    01 October 2019
%
%  Input:
%
%    real x: the argument.
%
%  Output:
%
%    real value: the function value.
%
  value = ...
            cos (       x ) ...
    + 5.0 * cos ( 1.6 * x ) ...
    - 2.0 * cos ( 2.0 * x ) ...
    + 5.0 * cos ( 4.5 * x ) ...
    + 7.0 * cos ( 9.0 * x );

  return
end
