The mgf command will compute the moment generating function for a probability distribution (such as normal, binomial, poisson, beta, gamma). It takes as arguments the name of the distribution and any necessary parameters. To find the moment generating function for the standard normal distribution, you can enter
and get
If you enter
you will get