function g = p22_g ( n, x )

%*****************************************************************************80
%
%% p22_g evaluates the gradient for problem 22.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 December 2000
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of variables.
%
%    real X(N), the values of the variables.
%
%  Output:
%
%    real G(N), the gradient of the objective function.
%
  g = 2.0 * x;

  return
end
