#include <func.h>
Public Members | |||
![]() | ![]() | single_dimension_implicit ( const T &fx, const double tol ) | |
![]() | ![]() | The only constructur for a single_dimension_implicit function. More... | |
![]() | ![]() | virtual | ~single_dimension_implicit (void) |
![]() | ![]() | virtual T | evaluate ( const double x, T fx1, T fx2, const double tol ) const = 0 |
![]() | ![]() | Evaluate the function, provided an initial guess. More... | |
![]() | ![]() | virtual T | evaluate ( const double x, const double tol ) const = 0 |
![]() | ![]() | Evaluate the function, using the default guess. More... | |
![]() | ![]() | T | default_guess |
![]() | ![]() | The initial guess to use for function computations when no other guess is provided. | |
![]() | ![]() | double | default_tol |
![]() | ![]() | The calculation tolerance to use for function computations when no explicit tolerance is provided. | |
That is, computing the mapping is difficult because there is no explicit equation for calculating the value from the argument. Instead, the mapping must be computed iteratively from an initial guess.
| T |
the return type of the function. Usually, T is double, but could be vector<double>. |
Definition at line 75 of file func.h.
|
template<class T> func::single_dimension_implicit<T>::single_dimension_implicit<T> (const T & fx, const double tol) [inline]
|
The only constructur for a single_dimension_implicit function.
| fx | the initial guess to use for function computations when no other guess is provided |
| tol |
the calculation tolerance to use when no explicit tolerance is provided
|
assert( this->default_guess == fx ); assert( this->default_tol == tol );
|
template<class T> func::single_dimension_implicit<T>::~single_dimension_implicit<T> (void) [inline, virtual]
|
|
template<class T> virtual T func::single_dimension_implicit<T>::evaluate (const double x, T fx1, T fx2, const double tol) const [pure virtual]
|
Evaluate the function, provided an initial guess.
| x | the argument of the function |
| fx1 | one bracket of the value of the function |
| fx2 | the other bracket of the value of the function |
| tol | the calculation tolerance |
|
template<class T> virtual T func::single_dimension_implicit<T>::evaluate (const double x, const double tol) const [pure virtual]
|
Evaluate the function, using the default guess.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| x | the argument of the function |
| tol | the calculation tolerance |
|
template<class T> T func::single_dimension_implicit<T>::default_guess |
The initial guess to use for function computations when no other guess is provided.
|
template<class T> double func::single_dimension_implicit<T>::default_tol |
The calculation tolerance to use for function computations when no explicit tolerance is provided.
1.0.0 written by Dimitri van Heesch,
© 1997-1999