function value = hex2 ( xy )

%*****************************************************************************80
%
%% hex2 evaluates the hex2 function.
%
%  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: the function value.
%
  x = xy(1);
  y = xy(2);

  value = 2.0 * x.^2 - 1.05 * x.^4 + x.^6 / 6.0 + x .* y + y.^2;

  return
end

