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 is a functor which encapsulates the function: exp(x) - offset. The function variable is x. Offset is a hidden variable. This class is used to demonstrate the NewtonRaphsonSolve0< functor, real > template class, in the test file NewtonRaphson.cpp. More...
|
Functions |
|
int | main () |
Generated on Thu Sep 10 16:47:20 2009 for public_options by
1.5.1