Assignment 1: Factorial and its applications
Write SML function (recursive) to compute the factorial
and use in the computation of the following.
- sum of first n terms in the series fn = 0! + 1! + 2! + 3! + ...
- compute e from n terms of the series e = 1/0! + 1/1! + 1/2! + ...