MATLAB: How do i represent graphically e-r

limit

e=lim r
r=(1+1/n)^n
n=5:5:500

Best Answer

Try this:
syms r(n) n
r(n)=(1+1/n)^n;
lim_r = limit(r, n, Inf)
fplot(r, [0 500], '-b')
hold on
fplot(lim_r, [0 500], '--r')
hold off
ylim(double([r(eps) ceil(r(500))]))
Related Question