supports dqagse single variate functions (not heavily tested)