alc
I am very drunk ama
re: alc
@vaporeon_ give me a second I'll make a somewhat long write up in a sec
re: alc
@vaporeon_ @vaporeon_ in physics you learn about vectors. we are told that vectors are the language of physics. in your very first semester of college (and likely high school physics) you learn about vectors. and yet vectors were only formalized in the early 1900s! what did physics even look like before vectors?
I haven't fully answered this question for myself but an important part of the history is the concept of the "quaternion". The famous Irish mathematician William Rowan Hamilton wanted to extend numbers to three dimensions. Of course, complex numbers can be understood as a "two-dimensional" analogue to numbers since you can plot the real and complex part of a number on a two dimensional plane. We write a complex number like x + iy. You might think that to extend numbers to three dimensions you would make a "super complex" number, something like x + iy + jz
However, Hamilton wanted numbers that exhibited all of the properties exhibited by real and complex numbers. Things like inverses, in which I can multiply a number by another number, and then divide by that same number to get the original number. He couldn't find a way to do this with numbers of the form x + iy + jz
The trick Hamilton came up with was to create numbers in four parts to represent three dimensions. That is, numbers were of the form a + bi + cj + dk. He called these numbers quarternions. The numbers associated with the i, j, and k were parts of three dimensions, and the extra number not associated with an i, j, and k was an auxiliary piece of the number that helped give the structure desirable mathematical properties. With this structure he was able to define multiplication is a way that created inverses! (Fascinatingly, a mathematician later proved that real numbers, complex numbers, and quaternions were the only numbers that could possibly satisfy all of the algebraic properties Hamilton was looking for!! No other mathematical structure was capable of having all of these properties! Hamilton was unknowingly looking for extremely privileged information!!!!)
When we multiply quaternions, we multiply them using the distributive rules of ordinary algebra:
(a + i*b + *j*c + *k*d) * (e + *i*f + *j*g + *k*h)
= ae + *i*af + *j*ag + *k*ah +
*i*be + *ii*bf + *ij*bg + *ik*bh +
*j*ce + *ji*bf + *jj*cg + *jk*ch +
*k*de + *ki*df + *kj*dg + *k*k*dh
To simplify further Hamilton introduced the following rules for the multiplication of i, j, and k with each other:
ii* = *jj* = kk = -1
ij = k
jk = i
ki = j
ji = -k
kj = -i
ik = -j
With these rules the multiplication of two quaternions simplifies to
(a + *i*b + *j*c + *k*d) * (e + *i*f + *j*g + *k*h)
= ae + i*af + *j*ag + *k*ah +
*i*be + *ii*bf + *ij*bg + *ik*bh +
*j*ce + *ji*bf + *jj*cg + *jk*ch +
*k*de + *ki*df + *kj*dg + *k*k*dh
= ae + *i*af + *j*ag + *k*ah +
*i*be - bf + *k*bg - *j*bh +
*j*ce - *k*bf - cg + *i*ch +
*k*de + *j*df - *i*dg - dh
= (ae - dh - cg - bf) + i(af + be + ch - dg) + j(ag - bh + ce + df) + k(ah + bg - bf + de)
Okay, so what? Well, let's consider the specific case where we multiply two numbers which only have nonzero parts in the i, j, and k parts. That is, a=e=0. The result is
(i*b + *j*c + *k*d) * (*i*f + *j*g + *k*h)
= -(dh - cg - bf) + *i(ch - dg) + j(-bh + df) + k(bg - cf)
Well hold on. The part without i, j and k looks like the negative of the dot product:
(*i*b + *j*c + *k*d) * (*i*f + *j*g + *k*h) = (dh - cg - bf)
And the part with i, j, and k looks like the cross product!!!
(i*b + *j*c + *k*d) ❌ (*i*f + *j*g + *k*h)
= *i(ch - dg) + j(-bh + df) + k(bg - cf)
It ends up that these two parts of quaternions were often useful in practical calculations, and the creation of vectors, the dot product, and the cross product resulted in the recognition of the usefulness of these two parts of quarternions!!!!!!
re: alc
@vaporeon_ the formatting here is all fucked up. Too bad!
re: alc
@wallhackio @vaporeon_ i ain't reading all that, happy for you or sorry that happened
re: alc
@cam @wallhackio @vaporeon_ I lost ya'll at "vectors" because I started thinking about Vector the Crocodile instead
re: alc
@cam @wallhackio But quaternions are cool... ![]()
They do something something computer graphics rotating stuff with it, I do not know the details, perhaps the Clodsire can tell me more
I do have a problem with reading the formulae, though, I don't think you intended them to look like this
re: alc
@vaporeon_ @wallhackio i was just kidding, i'll read it later
re: alc
@vaporeon_ @cam yeah I did leave this comment haha. I didn't feel like deleting and remaining the post a bunch of times so I just let it be
regarding rotations I am aware quaternions are used for this purpose but it's something else details I haven't gone over yet
re: alc
@wallhackio Oops, failed to see that comment SMH
What did you, as a physicist, use quaternions for?
re: alc
@vaporeon_ we never used them. it's was something I was vaguely aware existed for it's historical value but they never taught it to us formally
re: alc
@wallhackio What'd ya have?
re: alc
@aschmitz @wallhackio my dad was feeding him martinis
re: alc
@aschmitz my neighbor wanted to make me a martini and because I tried a wet martini he also made me a dry martini but then his wife made a white lady that she didn't like so she offered it to me and I was on an empty stomach and I drank it all
re: alc
@wallhackio Sounds like you just need a Vesper as a nightcap, then. (Hopefully you're having a good time!)
re: alc
@aschmitz it was a great time I love my roommates dad (who is the neighbor in question)
also he and his wife fed me lots of good food once they realized I was plastered
re: alc
@wallhackio Aw, that's nice of them!
re: alc
@wallhackio can I have $100
re: alc
@The_T I would but I'm broke sorry The T
re: alc
@wallhackio damn, I was hoping you made bank with like a programmer job or something.
Fine then I demand cat pics.
re: alc
@wallhackio hell yes the internet rules
alc
@wallhackio what's on the menu?
re: alc
@baronvonjace my roommates dad wanted to make me a martini and then I drank it and because it was a wet martini he gave me a dry martini and then his wife made a white lady she didn't like and then offered it to me and I was on an empty stomach at the time
re: alc
@wallhackio what's the difference between a wet and dry martini?
re: alc
@baronvonjace i forgor i was too drunk at the time 💀
re: alc
@wallhackio is quagsire your friend or your enemy
re: alc
@sudo_EatPant friend, reported for suggesting otherwise
re: alc
@wallhackio Tell me cool maths facts right now