xerus
a general purpose tensor library
simpleNumerics.cpp File Reference

Implementation of the Romberg integration, polynomial class and limit extractors. More...

Go to the source code of this file.

Namespaces

 xerus
 The main namespace of xerus.
 
 xerus::misc
 Collection of classes and functions that provide elementary functionality that is not special to xerus as a tensor library.
 

Functions

double xerus::misc::find_root_bisection (const std::function< double(double)> &_f, double _min, double _max, double _epsilon=1e-14)
 
double xerus::misc::integrate (const std::function< double(double)> &_f, double _a, double _b, double _eps=std::numeric_limits< double >::epsilon(), uint _minIter=4, uint _maxIter=6, uint _branchFactor=7, uint _maxRecursion=10, bool _relativeError=true)
 Performs a Romberg Integration (richardson extrapolation of regular riemannian sum) + adaptive refinement. More...
 
double xerus::misc::integrate_segmented (const std::function< double(double)> &_f, double _a, double _b, double _segmentation, double _eps=1e-8, uint _minIter=4, uint _maxIter=6, uint _branchFactor=8, uint _maxRecursion=10)
 

Detailed Description

Implementation of the Romberg integration, polynomial class and limit extractors.

Definition in file simpleNumerics.cpp.