Smatchcube's website 🌍


Exercise 1.31

a. Here is a recursive version of product:

Here is the factorial procedure:

An approximation of \(\pi\) using product:

b. Here is the alternative iterative version of product: