Approximation of analytic functions in adaptive environment