ADOL-C implements automatic differentiation in C++.
C++ files that can be used with ADOL-C are created by the command
The files created are [name]_adolc.cpp and [name]_adolc.h, where [name] is the name of the vector field given in the vector field file. The C++ file [name]_adolc.cpp will contain the function
As an example of how the pendulum_vf() function might be used, the program pend_solver.cpp implements a simple ODE solver with a fixed step size. A Makefile for this program is Makefile-pend_solver. The program can be compiled with the command