function J = p01_j ( m, n, x )

%*****************************************************************************80
%
%% p01_j() evaluates the jacobian for problem 1.
%
%  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 );

  J(:,:) = - 2.0 / m;
  for j = 1 : min ( m, n )
    J(j,j) = J(j,j) + 1.0;
  end

  return
end
