NAG Library Manual, Mark 27.2
Interfaces:  FL   CL   CPP   AD 

NAG AD Library Introduction
Example description

X10AA_A1W_F C++ Header Example Program Results

Computing ln(1+x) and its adjoint using s01ba

Symbolic computational mode is being used

AD computation failed as expected with ifail = -199

Algorithmic computational mode is being used

Input value of x             : 1.0000e-01
Output value of ln(1+x)      : 9.5310e-02
AD evaluated derivative      : 9.0909e-01
Directly computed derivative : 9.0909e-01