Chapter 8 Exercises 8.8 Question 5

library(pracma)
x = function(x) {1/(1-x)}

c = 0
n = 7

taylor(x, c, n)
## [1] 1.007014 1.001710 1.000293 1.000029 1.000003 1.000000 1.000000 1.000000