Calculation of machine precision second order derivatives using dual-complex numbers

H. Millwater,M. Balcer,N. Millwater
DOI: https://doi.org/10.1007/s11075-024-01937-2
IF: 2.37
2024-10-05
Numerical Algorithms
Abstract:It is well known that both complex and dual numbers can be employed to obtain machine precision first-order derivatives; however, neither, on their own, can compute machine precision 2nd order derivatives. To address this limitation, it is demonstrated in this paper that combined dual-complex numbers can be used to compute machine precision 1st and 2nd order derivatives. The dual-complex approach is simpler than utilizing multicomplex or hyper-dual numbers as existing dual libraries can be used as is or easily augmented to accept complex numbers, and the complexity of developing, integrating, and deploying multicomplex or hyper-dual libraries is avoided. The efficacy of this approach is demonstrated for both univariate and multivariate functions. Source code examples using the Python, Julia, and Mathematica languages are provided as supplemental material.
mathematics, applied
What problem does this paper attempt to address?