DOE PAGES title logo U.S. Department of Energy
Office of Scientific and Technical Information

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

Journal Article · · Numerical Algorithms

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. Finally, source code examples using the Python, Julia, and Mathematica languages are provided as supplemental material.

Research Organization:
Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)
Sponsoring Organization:
USDOE National Nuclear Security Administration (NNSA)
Grant/Contract Number:
NA0004107; 89233218CNA000001
OSTI ID:
2467396
Report Number(s):
LA-UR--24-20734
Journal Information:
Numerical Algorithms, Journal Name: Numerical Algorithms Journal Issue: 4 Vol. 99; ISSN 1017-1398
Publisher:
SpringerCopyright Statement
Country of Publication:
United States
Language:
English

References (24)

Linear algebra and numerical algorithms using dual numbers journal August 2007
Numerical differentiation for local and global tangent operators in computational plasticity journal August 2000
Robust numerical calculation of tangent moduli at finite strains based on complex-step derivative approximation and its application to localization analysis journal February 2014
A highly accurate 1st- and 2nd-order differentiation scheme for hyperelastic material models based on hyper-dual numbers journal January 2015
A new inverse analysis approach for multi-region heat conduction BEM using complex-variable-differentiation method journal August 2005
A virtual crack extension method to compute energy release rates using a complex variable finite element method journal August 2016
A complex-variable virtual crack extension finite element method for elastic-plastic fracture mechanics journal October 2018
Complex variable methods for shape sensitivity of finite element models journal October 2011
Computing CHEMKIN Sensitivities Using Complex Variables journal July 2003
Functions of Matrices book January 2008
Using Complex Variables to Estimate Derivatives of Real Functions journal January 1998
Using Multicomplex Variables for Automatic Computation of High-Order Derivatives journal April 2012
MultiZ: A Library for Computation of High-order Derivatives Using Multicomplex or Multidual Numbers journal September 2020
Algorithm 1008 journal May 2020
The complex-step derivative approximation journal September 2003
Widely Convergent Method for Finding Multiple Solutions of Simultaneous Nonlinear Equations journal September 1972
Dual number-based variational data assimilation: Constructing exact tangent linear and adjoint code from nonlinear model evaluations journal October 2019
Complex Variable Method for Eigensolution Sensitivity Analysis journal December 2006
Multicomplex Newmark-Beta Time Integration Method for Sensitivity Analysis in Structural Dynamics journal May 2015
Arbitrary-Order Sensitivity Analysis in Wave Propagation Problems Using Hypercomplex Spectral Finite Element Method journal April 2024
Sensitivity Analysis for Navier-Stokes Equations on Unstructured Meshes Using Complex Variables journal January 2001
Step-Size Independent Approach for Multidisciplinary Sensitivity Analysis journal May 2003
The Development of Hyper-Dual Numbers for Exact Second-Derivative Calculations conference June 2011
De-Moivre and Euler Formulae for Dual-Complex Numbers journal September 2019