Calculate the continued fractions expansion of power series