Class xlifepp::TrapzInterval#

template<typename T>
class TrapzInterval#

Collaboration diagram for xlifepp::TrapzInterval:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "1" [label="xlifepp::TrapzInterval< T >" tooltip="xlifepp::TrapzInterval< T >" fillcolor="#BFBFBF"] }

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)