Find the range of a composite function (#346)