You are on page 1of 1

x <- 6 # Initial starting value

while(exp(-x)*(1+x) > 0.01)


{
x <- x+10^-5
}
round(x, digits=4)

You might also like