# MGF of an exponential distribution, evaluated at -0.1:
MGFexponential(-0.1, rate = 0.05)
# Second moment of the distribution (second derivative evaluated at zero):
MGFexponential(0, rate = 0.05, deriv = 2)
Run the code above in your browser using DataLab