function f = r8mat_hess_f ( n, x )

%*****************************************************************************80
%
%% r8mat_hess_f() is a sample nonlinear function for treatment by r8mat_hess().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of parameters.
%
%    real X(N), the parameter values.
%
%  Output:
%
%    real F, the function value.
%
  f = x(1) * x(1) + x(1) * x(2) + x(2) * cos ( 10.0 * x(3) );

  return
end
