Newton_functor Class Reference

List of all members.

Detailed Description

This functor is provided as a demonstration of how to create a functor for the template class NetwonRaphson0. It encapsulates the function: exp(x) - offset. The function variable is x. Offset is a hidden variable. This class is defined in the demonstration file NewtonRaphson.cpp.

Definition at line 34 of file NewtonRaphson.cpp.

Public Member Functions

 Newton_functor (double offset)
 the creator for Newton_functor which assigns the hidden variable offset
double f (double x)
 the function to be solved
double df (double x)
 the derivative of the function to be solved

Public Attributes

double _offset
 This is the hidden variable for class Newton_functor, which makes this class a functor, as opposed to a group of function pointers.


The documentation for this class was generated from the following file:
Generated on Sat Sep 12 20:10:46 2009 for NewtonRaphson by  doxygen 1.5.1