function J = p17_j ( m, n, x )

%*****************************************************************************80
%
%% p17_j() evaluates the jacobian for problem 17.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%  Modified:
%
%    03 March 2026
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of equations.
%
%    integer N, the number of variables.
%
%    real X(N), the evaluation point.
%
%  Output:
%
%    real J(M,N), the jacobian matrix.
%
  J = zeros ( m, n );

  for i = 1 : 33

    temp = 10.0 * ( i - 1 );
    tmp1 = exp ( -x(4) * temp );
    tmp2 = exp ( -x(5) * temp );

    J(i,1) = -1.0;
    J(i,2) = -tmp1;
    J(i,3) = -tmp2;
    J(i,4) = temp * x(2) * tmp1;
    J(i,5) = temp * x(3) * tmp2;

  end

  return
end
