NAG Library Manual, Mark 29.2
Interfaces:  FL   CL   CPP   AD 

NAG FL Interface Introduction
Example description

 E04XAF Example Program Results

 Find gradients and Hessian diagonals given function only                      
 ( i.e. MODE = 0 ).
 Function value is    1.550E+02
 Estimated gradient vector is
    2.400E+01   -2.680E+02    2.160E+02   -4.000E+01
 Estimated Hessian matrix diagonal is
    1.220E+02    3.080E+02    4.420E+02    1.300E+02

 Find Hessian matrix given function and gradients                              
 ( i.e. MODE = 1 ).
 Function value is    1.550E+02
 Gradient vector is
    2.400E+01   -2.680E+02    2.160E+02   -4.000E+01
 Estimated Hessian matrix (machine dependent) is
    1.220E+02    2.000E+01    0.000E+00   -1.200E+02
    2.000E+01    3.080E+02   -2.160E+02    0.000E+00
    0.000E+00   -2.160E+02    4.420E+02   -1.000E+01
   -1.200E+02    0.000E+00   -1.000E+01    1.300E+02

 Find gradients and Hessian matrix given function only                         
 ( i.e. MODE = 2 ).
 Function value is    1.550E+02
 Estimated gradient vector is
    2.400E+01   -2.680E+02    2.160E+02   -4.000E+01
 Estimated Hessian matrix (machine dependent) is
    1.220E+02    2.000E+01   -4.404E-03   -1.200E+02
    2.000E+01    3.080E+02   -2.160E+02    6.605E-03
   -4.404E-03   -2.160E+02    4.420E+02   -1.000E+01
   -1.200E+02    6.605E-03   -1.000E+01    1.300E+02