Class xlifepp::TrapzInterval#
-
template<typename T>
class TrapzInterval#
-
Collaboration diagram for xlifepp::TrapzInterval:
adaptative trapeze method from a function and a given tolerance eps compute int_[a,b] f(x)dx using trapeze method I1=0.5*(b-a)*[f(a)+f(b)] and the modified trapeze method I2=0.25*(b-a)*[f(a)+2*f(0.5*(a+b))+f(b)] error estimator: |I1-I2|< 3*eps*(b-a)