Analytic continuation of scaling functions