Problem 1       Due 1/24/01

1)  If you are not intimately familiar with matlab,
print out and read the Matlab Primer.  Note that
the back half of it is just reference material.

2)  Write a matlab function to compute log(n!)
for any value of n, and then graphically compare
this to Stirling's formula:

log(n!) ~ n log(n) - n

and to the more exact asymptotic relationship:

log(n!) ~ (n + 0.5) log(n) - n + 0.5 log(2 pi)

Use a solid line for Stirling's formula, a dashed
line for the more exact formula, and 'o' for the
actual values.  Be sure to label all of the axes
and to provide a legend showing what is what on
your plot.  As always, turn in the program and
the output (graphical or otherwise).  Commands
which may be useful include plot, title, xlabel, 
ylabel, legend - to get more information on any of
these, just type "help" and the name of the command.