We know that $$\lim _{ n\rightarrow \infty }{ { \left( 1-\frac { 1 }{ n } \right) }^{ n } } =\frac { 1 }{ e } .$$ However the result of $$\lim _{ n\rightarrow \infty }{ { \left( -1+\frac { 1 }{ n } \right) }^{ n } } $$ is shown in complex form by Wolframalpha . Why complex numbers?
Yes, $-1+\frac { 1 }{ n } < 0 $, but if we write the values from $n=1,2..,10$ , all values will be real. Any opinion? How do you calculate this limit?
Wolfram is interpreting $x$ as a real variable, not an integer one. Hence the value is complex for some values of $x$ - in particular, $k + 1/2$ will give a complex result for every integer $k$.