logoalt Hacker News

thrtythreefortytoday at 5:10 AM3 repliesview on HN

Here's another good reason to think in turns: it turns Euler's formula from this Eldritch Terror:

    e^(i*x) = cos(x) + i*sin(x)
into something you can kinda understand by staring at the complex plane:

    -1^(2x) = cost(x) + i*sint(x)
Credit to justinpombrio for this: https://news.ycombinator.com/item?id=32986869

Replies

judofyrtoday at 6:24 AM

I'm confused. How is this simpler? Is there something in (-1)^(2x) that can easily understood by staring at the complex plane? It seems mostly that you've gotten rid of "e", but one of the goals of Euler's formula IMO is to explain what "e^(i …)" means so I'm not sure how this variant is useful.

WCSTombstoday at 10:10 AM

Sorry but this is pretty bogus. (-1)^x is only well defined when x is an integer. This is generally the case for r^x whenever r isn't a positive real number. For example, when x = 0.5, r has two distinct square roots. Sure, you can choose one of them arbitrarily and declare it to be the value of r^0.5 (and math libraries typically do this), but there's unfortunately no good way to make this arbitrary choice consistently for all values of r simultaneously.

lefratoday at 7:08 AM

Now define exponentiation by a non-integer.