.\" .de Id .. .de Sp .if n .sp .if t .sp 0.4 .. .TH ad3 2rheolef "rheolef-7.0" "rheolef-7.0" "rheolef-7.0" .\" label: /*Class:ad3 .SH NAME \fBad3\fP - automatic differentiation with respect to variables in R^3 .\" skip: @clindex ad3 .SH DESCRIPTION The \fBad3\fP class defines a forward automatic differentiation in R^3 for computing automatically the gradient of a function from R^3 to R. The implementation uses a simple forward automatic differentiation method. .SH EXAMPLE .\" begin_example .Sp .nf template T f (const point_basic& x) { return sqr(x[0]) + x[0]*x[1] + 1/x[2]; } ... point_basic x_ad = ad3::point (x); ad3 y_ad = f(x_ad); cout << "f ="< GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.