> taylor(sum ( exp(-x*R[i]), i, 1, 2), x, 0, 1); It must be taylor(sum ( exp(-x*R[i]), i, 1, N), x, 0, 1);