From divergent power series to analytic functions