Find the inverse of a function involving square roots (#354)