Complex step Hessian

version (1.7 KB) by Yi Cao
Calculate Hessian using complex step differentiation


Updated Wed, 02 Jan 2008 15:01:56 +0000

View License

Hessian is the second order derivative of a scalar function. It is relatively difficult using finite difference to get accurate Hessian due to the approximation error if the differentiation step is too large and cancellation between two large values if the differentiation step is too small. Taking the advantage of complex step differentiation, this code is able to provide the Hessian of a scalar function much more accurate than other finite difference approaches.

Cite As

Yi Cao (2022). Complex step Hessian (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!