NewtonRaphson.cpp File Reference
Detailed Description
This is a demonstration of how to use NewtonRaphson.h
to compile: g++ -I. -lm NewtonRaphson.cpp
description: this test the algorithm in 3 situations:
1) calculating df at bouth points, to find the average df, for each iteration, with no boundaries
2) calculating d2f to get second order approximation at each iteration, with no boundaries
3) calculating d2f to get second order approximation at each iteration, and a boundary solution
Definition in file NewtonRaphson.cpp.
#include "NewtonRaphson.h"
#include <math.h>
Include dependency graph for NewtonRaphson.cpp:
Go to the source code of this file.
|
Classes |
| class | Newton_functor |
| | 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. More...
|
Functions |
|
int | main () |
Generated on Sat Sep 12 20:10:46 2009 for NewtonRaphson by
1.5.1