function f = p25_f ( m, n, x )

%*****************************************************************************80
%
%% p25_f() evaluates the M nonlinear functions for problem 25.
%
%  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 );

  for i = 1 : m

    ti = ( i - 1 ) / 10.0;

    f(i) = x(1) * ( abs ( x(2) )^ti ) ...
      * tanh ( x(3) * ti + sin ( x(4) * ti ) ) ...
      * cos ( ti * exp ( x(5) ) ) ...
      - 53.81 * ( 1.27^ti ) ...
      * tanh ( 3.012 * ti + sin ( 2.13 * ti ) ) ...
      * cos ( ti * exp ( 0.507 ) );
  end

  return
end
