function value = hex2_df ( xy )

%*****************************************************************************80
%
%% hex2_df evaluates the hex2 gradient.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 October 2019
%
%  Input:
%
%    real xy(2): the x and y arguments.
%
%  Output:
%
%    real value(2): the gradient vector.
%
  x = xy(1);
  y = xy(2);

  value(1) = 4.0 * x - 4.2 * x.^3 + x.^5 + y;
  value(2) = x + 2.0 * y;

  return
end

