Implement better inv for power series.