Fixed brentq rounding error in tgeo