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

NAG AD Library Introduction
Example description

D01RK_A1W_F C++ Header Example Program Results


 lower limit of integration (a) = 0
 upper limit of integration (b) = 6.28319
 choice of Gaussian rule (key)  = 6
 absolute accuracy requested    = 0
 relative accuracy requested    = 0.0001
 maximum number of subintervals = 20

 approximation to the integral  : -2.0967e-01
 estimate of the absolute error : 4.4770e-14
 number of function evaluations : 4

 Derivatives calculated: First order adjoints
 Computational mode    : algorithmic

 Derivative of solution w.r.t to parameter in ruser:
 dI/druser[0] = 1.4009e-02
 dI/druser[1] = -9.3291e-04