Mini-exercise

Euler’s number is useful in calculations for statistical bell curves and compound growth rates. Add the constant e, 2.7183, to your Math namespace. Then you can figure out how much money you’ll have if you invest $25,000 at 7% continuous

interest for 20 years:

let nestegg = 25000 pow(Math.e, 0.07 20) // $101,380.95

Note: In everyday life, you should use ME from the standard library for the value of _e. The Math namespace here is just for practice.

results matching ""

    No results matching ""