Here is the situation: I have a symbolic function lamb which is function of the elements of the variable z and the functions elements of the variable h. Her
There is an answer here which uses the hessian and a one-liner jacobian function.
hessian
jacobian