cctalk-bounces at
classiccmp.org wrote:
If I ask "How would you write a program to
calculate the
natural log of 147 factorial?" and the answer doesn't involve
looking up an algorithm for the gamma function (or someone
who actually remembers the functional form of the Stirling
approximation) I shout "next!" Factorials should never be
used as an example of recursion in intro programming courses.
Couldn't the answer be "loop from 2 to N=147, sum += ln(N)"?
Or do I need another coffee?
Antonio