The slope should be 2. It appears to be: 2.00021.
If it is far from 2, then directional derivatives might be erroneous.
The residual should be 0, or very close. Residual: 2.58133e-12.
If it is far from 0, then the gradient is not in the tangent space.
In certain cases (e.g., hyperbolicfactory), the tangency test is inconclusive.
2 . Checkhessian :
The slope should be 3. It appears to be: 2.99952.
If it is far from 3, then directional derivatives,
the gradient or the Hessian might be erroneous.
Tangency residual should be zero, or very close; residual: 1.64526e-12.
If it is far from 0, then the Hessian is not in the tangent space.
||a*H[d1] + b*H[d2] - H[a*d1+b*d2]|| should be zero, or very close.
Value: 1.02642e-11 (norm of H[a*d1+b*d2]: 8318.21)
If it is far from 0, then the Hessian is not linear.
<d1, H[d2]> - <H[d1], d2> should be zero, or very close.
Value: 554.927 - 554.927 = 6.82121e-13.
If it is far from 0, then the Hessian is not symmetric.