The solution of many problems requires us to compute derivatives. Complex step differentiation is a method of computing the first derivative of a real function, which circumvents the problem of roundoff error found with typical finite difference approximations.
For finite difference approximations, the choice of step sizeWhere it can be applied, complex step differentiation provides a stable and accurate method for computing .
Continue reading ‘Real Derivatives from Imaginary Increments’