News for hackers. Stuff that matters.
Re:Obsolete trig functions and why we don't use them anymore... by MayeulC on Thursday December 03, 2020 @10:03AM (#25289467)
Well, as far as I know, cosinus and sinus have relatively little to do with exponential and imaginary numbers, just like imaginary numbers have intrinsically little to do with the 2D plane. I just think of it as a convenient notation since those obey similar composition rules (that probably stem from their odd and even-ness, and taylor series decomposition from there).

So you need at least that one, since it is by convention, and not really derivable[1]:

    exp(ix) = cos(x) + i*sin(x)
I personally just use Euler's notation (using exp) as a tool to derive trig formulas, since I know power composition rules quite well already, and those tend to be more useful in general.

   [cos(x)]^2 + [sin(x)]^2 = 1
Is just the Pythagorean theorem on a unit circle, which also defines sin and cos :)

[1] OK, you can look at the taylor series expansion, but you need to remember the derivatives for this.

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.

Re:Obsolete trig functions and why we don't use them anymore... by gmadsen on Thursday December 03, 2020 @10:37AM (#25289846)
how can you say imaginary numbers have intrinsically little to do with the 2D plane? it is entirely possible and equally correct to define imaginary numbers geometrically. It is nice and convenient that this is equivalent to the algebraic definition.
Re:Obsolete trig functions and why we don't use them anymore... by gmadsen on Friday December 04, 2020 @10:26AM (#25303276)
for anyone interested, a great text on this is https://www.amazon.com/Visual-Complex-Analysis-Tristan-Needh...
Re:Obsolete trig functions and why we don't use them anymore... by beervirus on Thursday December 03, 2020 @11:25AM (#25290524)
It's not just a convenient notation. Sine and cosine are intimately connected with exponentials and imaginary numbers.