Semiautomatic complex-step differentiation of real-valued functions
Ältere Kommentare anzeigen
I found the linked technical article interesting but don't have the mathematical background to determine how useful it may really be. I'm not affiliated with the author but would like to raise it for comments.
Because this is academic software there are the usual style issues and a minor bug in a utility program (on line 24 of pMat.m num2str(dec) should read num2str(ndec)). Also, without the Statistics Toolbox several instances of normrnd(a,b,size(x)) must be replaced with the equivalent a + b*randn(size(x)).
1 Kommentar
Mark Shore
am 15 Feb. 2012
Antworten (1)
Andrew Newell
am 15 Feb. 2012
1 Stimme
There is another implementation in MATLAB File Exchange that compares this method to others. Complex step derivatives are astonishing and cool, but no more accurate than automatic differentiation. My favorite package for numerical derivatives is John D'Errico's Adaptive robust numerical differentiation: it includes functions for gradient and Hessian.
1 Kommentar
Mark Shore
am 15 Feb. 2012
Kategorien
Mehr zu Physics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!