#include "xf_fintech/quadrature.hpp"
template <typename DT> static int simp_integrate ( DT a, DT b, DT tol, DT* res, XF_USER_DATA_TYPE* p )
integration function using the adaptive simpson 1/3 technique
Parameters:
| DT | float or DT, determines the precision of the result |
| a | lower limit of integration |
| b | upper limit of integration |
| tol | required tolerance of the result |
| res | the result of the integration |
| p | pointer to structure containing parameters for integrating function |
Returns:
1 - success, 0 - fail (due to stack limitation)