Flow123d
jenkins-Flow123d-linux-release-multijob-198
|
Static class implementing integration using Simpson's rule. More...
#include <adaptivesimpson.hh>
Static Public Member Functions | |
static double | AdaptSimpson (FunctorBase< double > &func, const double &a, const double &b, const double &tol) |
main method that starts the evaluation and calls the recursion More... | |
Static Private Member Functions | |
static double | Simpson (const double &h, const double &fa, const double &fc, const double &fb) |
Evaluates the Simpson's rule. More... | |
static double | SimpsonAd (FunctorBase< double > &func, const double &h, const double &a, const double &c, const double &b, const double &fa, const double &fc, const double &fb, const double &sx, const double &tol, long &recursion) |
the recursive method More... | |
Static class implementing integration using Simpson's rule.
Uses 3-point Simpson's rule to evaluate an intergral on interval a,b. Divides interval in halves in recusion until the difference between values of Simpson's rule before and after division is smaller then .
Definition at line 15 of file adaptivesimpson.hh.
|
static |
main method that starts the evaluation and calls the recursion
Definition at line 46 of file adaptivesimpson.cc.
|
staticprivate |
Evaluates the Simpson's rule.
Definition at line 8 of file adaptivesimpson.cc.
|
staticprivate |
the recursive method
Definition at line 14 of file adaptivesimpson.cc.