Click on one or both tar files under releases for all sources...
C++ : https://github.com/fastrgv/AutomaticDifferentiation-C-Ada/releases/download/v1.1/cpp_AD_5mar20.tar
Ada Package and C++ Source Templates for Automatic Differentiation with examples:
Assignment operator is overloaded so that a normal looking function definition in a client app also provides access to evaluations of its analytic derivatives.
Automatic differentiation means the user does not need to define the analytic expression for all the various partial derivatives. It also means that those complex expressions are essentially calculated at compile time, and merely evaluated at runtime.
First order derivatives only, forward accumulation.
Examples are included that demonstrate a damped Newton's method for finding roots of systems of nonlinear equations.