% ==============================================

% Newton_2D_test1b_calc_Jac.m

%

% This MATLAB m-file calculates the Jacobian

% for a simple set of 2 non-linear equations.

%

% K. Beers. MIT ChE. 10/17/2001

function Jac = Newton_2D_test1b_calc_Jac(x,Param);

 

Jac = zeros(2,2);

 

Jac(1,1) = 9*x(1)^2;

Jac(1,2) = 8*x(2);

Jac(2,1) = 8*x(1);

Jac(2,2) = -3*x(2)^2;

 

return;