0

When I type these equations into a calculator I get $({e^{2\pi i}}){}^n = 1$ and something else for $e^{2\pi i n}$. Is that due to the imprecision of the calculator or does the inequality follow logically?

jvdh
  • 115

1 Answers1

3

Since $e^{ix}=\cos x+i\sin x$, $e^{ix}=1$ iff $\cos x=1\land\sin x=0$, i.e. iff $2\pi|x$. Thus $(e^{2\pi i})^n=1^n=1$, and $e^{2\pi in}=\cos 2\pi n+i\sin 2\pi n$, which is $1$ if $2\pi |2\pi n$ or equivalently $n\in\Bbb Z$. After a bit of fiddling with your URL, I found Google calculating $e^{2\pi i\times 5}$ as $1-1.2246468\times 10^{-15}i$. Bear in mind computers "think" in rational approximations, and since $\pi$ is irrational it's easy for a multiple of $2\pi$ to seem a little off when its cosine and sine are calculated.

J.G.
  • 115,835