kill(all)$

f(x):=(1/tan(x))^x;

limit(f(x),x,0);