integral should return an array, not just a tuple