function J = p12_j ( m, n, x )

%*****************************************************************************80
%
%% p12_j() evaluates the jacobian for problem 12.
%
%  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 : m
    temp = i;
    tmp1 = temp / 10.0;
    J(i,1) = -tmp1 * exp ( -tmp1 * x(1) );
    J(i,2) = tmp1 * exp ( -tmp1 * x(2) );
    J(i,3) = exp ( -temp ) - exp ( -tmp1 );
  end

  return
end
