range of a function with nested square roots