critical_points_2d function

Critical points of a two-variable function using gradient and Hessian