Task

Calculate the value of   e.



(e   is also known as   Euler's number   and   Napier's constant.)



See details: Calculating the value of e

 
options(digits=22)
cat("e =",sum(rep(1,20)/factorial(0:19)))
 