News for hackers. Stuff that matters.
Re:How to explain Euler's identity using triangles and spirals by jonsen on Monday June 14, 2010 @02:24PM (#1430492)
Help! What do I do wrong:

  e^(πi) = -1 <=>

  e^(2πi) = 1 <=>

  ln(e^(2πi)) = ln(1) <=>

  2πi = 0 <=>

  i = 0
Re:How to explain Euler's identity using triangles and spirals by lotharbot on Monday June 14, 2010 @05:41PM (#1431095)
The complex log function is a "branching function" [1] with an infinite number of branches. For comparison, the square root function has two branches.

sqrt(x^2) has two values, +x and -x.

ln(e^x) has an infinite number of values, x + 2nπi (for any integer n).

2πi = 0 + 2nπi for some n. (You can repeat this for, say, e^4πi, e^989781123972πi, e^-091784πi, etc. Those are all equal to 1.)

[1] http://en.wikipedia.org/wiki/Complex_logarithm

Re:How to explain Euler's identity using triangles and spirals by scotty79 on Monday June 14, 2010 @02:41PM (#1430534)
ln(e^(2πi)) is not 2πi

http://www.wolframalpha.com/input/?i=ln(e^(2%CF%80i))

It's similar mistake to claiming that sqrt(square(-2)) is -2

Re:How to explain Euler's identity using triangles and spirals by skybrian on Monday June 14, 2010 @02:30PM (#1430507)
Logarithms are tricky with complex numbers because rotation wraps around if you go 360 degrees (2 pi i).