%% Limit of Factorial Function
% Compute the limit at infinity for an expression containing the factorial function.

syms n
f = factorial(n)/exp(n);
fLim = limit(f,n,Inf)

%
% Copyright 2012-2019 The MathWorks, Inc.