kill(all)$

van=facebook.com/LearningCalculus$

f(x,n):=log(sum(%e^(i*x),i,0,n))/log(1+%e^x);

limit(f(x,100),x,inf);

f(x,n):=log(sum(e^(i*x),i,0,n))/log(1+e^x);

f(x,100);