Find the inverse of a rational function (#353)