Abstract:
Different approaches to the calculation of the gradient of a composite function of several variables are compared, namely, exact analytically derived formulas, formulas based on the fast automatic differentiation (FAD) technique, and standard software packages implementing the ideas of the FAD technique. The approaches are compared as applied to a composite function representing the energy of a system of atoms with the Tersoff interatomic potential. The comparison criterion is the computer time required for computing the gradient of the function. The results show that the FAD technique is superior to the analytical formulas. The standard packages take nearly the same time to compute the function gradient as the FAD technique formulas.
Key words:fast automatic differentiation, multistep process, standard software packages.