I guess this is as much a mathematics and computer science question as it is a Swift question.
I came across the need for 𝑒 today while writing a function that calculates continuously compounding interest using the formula interest = 𝑒 interest rate × number of compounding periods. Surprisingly, despite its importance and usefulness, I wasn't able to find 𝑒 in the standard library, Numerics package, or Foundation. So, what are some ways to computing or approximating 𝑒, with what's available in Swift?
It arises in probability. E.g. randomly select a number between 1 to n, n times. What's the probability a particular number, 1 say, never comes up? as n gets larger and larger the probability tends to 1 / e