News for hackers. Stuff that matters.
Re:Obsolete trig functions and why we don't use them anymore... by dragontamer on Thursday December 03, 2020 @10:36AM (#25289819)
cos(x) and sin(x) are just the unit circles applied over the 2-dimesnional real + imaginary axis.

Because x^2 + y^2 = 1 defines a unit circle, if you perform x^2 + i * y^2 = 1, you get a unit circle over the real/imaginary planes.

Or to put it in a picture: https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Eu...

Remember the definition of sin / cos: https://upload.wikimedia.org/wikipedia/commons/b/bd/Sine_and...

-------

Once you realize that "the imaginary axis" is just an arbitrary 2-dimension extension field (and that "imaginary" is a very bad name for it), it becomes way easier to see.

-------

Now if you had a 3-dimension graph (real, imaginary, and time), and then you project the unit-circle over the real + time axis, you get a sin (or cos) respectively.

-----------

Or to put it another way: there's a periodic nature of i:

* i = i

* i^2 = -1

* i^3 = -i

* i^4 = 1 -- Cycle-length 4

* i^5 = i

* i ^ x = i^(x mod 4) (In general)

This period itself forms a circle, moving from real-to-imaginary and back. (e^i^x) = (e^(ix)) therefore is periodic as well. And the most natural periodic cycle is a circle (which is of course, just sin/cos).

To make this "period 4" into a proper circle, multiply by pi/2.

i^(pi/2)^x == period 3.141592.... or the "circumference" of the unit circle.

e^i^(pi/2)^x == e^(i * pi/2 * x). Done.

There are no comments on this comment yet.