Dual Numbers for Arbitrary Order Automatic Differentiation

Abstract

Dual numbers are a well-established tool for computing derivatives and constitute the basis of forward-mode automatic differentiation. While the theoretical framework for computing derivatives of arbitrary order is well understood, practical and scalable implementations remain limited. Existing approaches based on nested dual numbers, such as those used in modern high-level languages, suffer from severe memory growth and poor scalability as the derivative order increases. In this work, we introduce DNAOAD, a Fortran-based automatic differentiation framework capable of computing derivatives of arbitrary order using dual numbers with a direct, non-nested representation. By avoiding recursive data structures, DNAOAD significantly reduces memory usage and enables the efficient computation of derivatives of very high order, overcoming key scalability limitations of existing methods and making it particularly well suited for high-performance scientific computing applications.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…