series[e^x+2*(cos(x)-1)/x^2]