#WSQ14 #TC1017

This program calculates the value of the trascendental number e. To do this, it sums 1+1/2!+1/3!+…+1/(n-1)!+1/n!, so basically it is the sum of reciprocal factorials plus one.

Here’s the link to my code:

https://github.com/alanvaldo/my-tc1017-stuff/blob/master/wsq14.cpp

CC BY 4.0 #WSQ14 #TC1017 by Alan is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.