%Our multivariate function for problem set 2 #3.  Written by Philip Shaw,
%Fordham University, 2022.  f(x1,x2)=ln(x1)+ln(x2). User must supply values
%of x1 and x2. The output will be f at values x1 and x2.  
function[fx1x2]=ps2func(x)
fx1x2=log(x(1))+log(x(2)); %functional value at x1, x2