function J = p02_j ( m, n, x )

%*****************************************************************************80
%
%% p02_j() evaluates the jacobian for problem 2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  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 j = 1 : n
    for i = 1 : m
      J(i,j) = i * j;
    end
  end

  return
end
