An inverse function theorem via continuous Newton’s method