wrapper to evaluate complex functions over given bounds