62 double s, st, ost( 0.0 );
63 for ( j = 1; j < 4; j++ )
65 st =
trapezoid( lower, higher, j, result );
66 s = ( 4.0 * st - ost ) / 3.0;
71 st =
trapezoid( lower, higher, j, result );
72 s = ( 4.0 * st - ost ) / 3.0;
74 if ( fabs(
s - olds ) < _precision * fabs( olds ) || (
s == 0.0 && olds == 0.0 ) )
return s;
78 for ( j = 5; j < _maxLoop; j++ )
81 st =
trapezoid( lower, higher, j, result );
82 s = ( 4.0 * st - ost ) / 3.0;
84 if ( fabs(
s - olds ) < _precision * fabs( olds ) || (
s == 0.0 && olds == 0.0 ) )
91 <<
"Severe error in EvtItgSimpsonIntegrator. Failed to converge after loop with 2**"
92 << _maxLoop <<
" calls to the integrand in." << endl;