next up previous
Next: Laboratory Up: Fermat's Principle Previous: Assessment of Newton`s

Implementation of Newton's Method using Adol-C

Previous lessons introduced Adol-C. This package can be used to augment a C++ function, , so the derivative, , can be computed at a point, x. The advantage of Adol-C is that error-prone coding of the derivative of a function can be avoided. Further there are instances when the derivative is not known in closed form.



J. C. Diaz