function f = p10_f ( m, n, x )

%*****************************************************************************80
%
%% p10_f() evaluates the M nonlinear functions for problem 10.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 March 2026
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Jorge More, Burton Garbow, and Kenneth Hillstrom,
%    Testing unconstrained optimization software,
%    ACM Transactions on Mathematical Software,
%    Volume 7, pages 17-41, 1981.
%
%  Input:
%
%    integer M, the number of functions.
%
%    integer N, the number of unknowns.
%
%    real X(N), the evaluation point.
%
%  Output:
%
%    real F(M), the value of the functions evaluated at X.
%
  f = zeros ( m, 1 );

  y = [ ...
    3.478E+04; 2.861E+04; 2.365E+04; 1.963E+04; 1.637E+04; ...
    1.372E+04; 1.154E+04; 9.744E+03; 8.261E+03; 7.03E+03;  ...
    6.005E+03; 5.147E+03; 4.427E+03; 3.82E+03;  3.307E+03; ...
    2.872E+03 ];

  for i = 1 : 16
    f(i) = x(1) * exp ( x(2) / ( 5.0 * i + 45.0 + x(3) ) ) - y(i);
  end

  return
end
