function J = p13_j ( m, n, x )

%*****************************************************************************80
%
%% p13_j() evaluates the jacobian for problem 13.
%
%  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
    J(i,1) = - i * exp ( i * x(1) );
    J(i,2) = - i * exp ( i * x(2) );
  end

  return
end
